/* ========================================
   登录 / 注册 / 忘记密码 — 现代风格
   ======================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f5f8ff 50%, #faf5ff 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 36px 32px 28px;
    border: 1px solid #eaeef2;
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.login-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #53b672, #3d9f5e);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.login-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d2b;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 13px;
    color: #9a9ab0;
    margin-top: 6px;
}

/* Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f5;
}

.login-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #9a9ab0;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
    position: relative;
}

.login-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #53b672;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s;
}

.login-tab.active {
    color: #53b672;
    font-weight: 600;
}

.login-tab.active::after {
    transform: scaleX(1);
}

.login-tab:hover {
    color: #1d1d2b;
}

/* Forms */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d2b;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e4ea;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1d1d2b;
    outline: none;
}

.login-input:focus {
    border-color: #53b672;
    box-shadow: 0 0 0 3px rgba(83,182,114,0.12);
}

.login-input::placeholder {
    color: #b0b5c0;
}

.login-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.login-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5a5a7a;
    cursor: pointer;
}

.login-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #53b672;
    cursor: pointer;
}

.login-link {
    font-size: 13px;
    color: #53b672;
    font-weight: 500;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #53b672, #3d9f5e);
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    font-family: inherit;
}

.login-btn:hover {
    box-shadow: 0 4px 14px rgba(83,182,114,0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* Code row */
.login-code-row {
    display: flex;
    gap: 10px;
}

.login-code-row .login-input {
    flex: 1;
}

.login-code-btn {
    white-space: nowrap;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #53b672;
    border-radius: 8px;
    background: transparent;
    color: #53b672;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.login-code-btn:hover {
    background: #f0fdf4;
}

.login-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-tip {
    font-size: 12px;
    color: #9a9ab0;
    margin-bottom: 16px;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f5;
    font-size: 13px;
    color: #5a5a7a;
}

.login-test-hint {
    text-align: center;
    margin-top: 14px;
    padding: 8px 12px;
    background: #f7f8fa;
    border-radius: 6px;
    font-size: 12px;
    color: #9a9ab0;
}

/* ========================================
   模态弹窗
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s;
}

.modal-overlay.closing {
    animation: fadeOut 0.2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-dialog {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 24px;
    width: 320px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    animation: slideUp 0.25s;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-body {}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon-success {
    background: #f0fdf4;
    color: #53b672;
    font-size: 24px;
}

.modal-text {
    font-size: 15px;
    color: #1d1d2b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-btn {
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #53b672;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.modal-btn:hover {
    background: #47a365;
}

/* ========================================
   忘记密码 — 步骤条
   ======================================== */

.forgot-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.forgot-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9a9ab0;
}

.forgot-step.active {
    color: #53b672;
    font-weight: 600;
}

.forgot-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e8e8ef;
    color: #9a9ab0;
}

.forgot-step.active .forgot-step-num {
    background: #53b672;
    color: #fff;
}

.forgot-step-arrow {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #e0e4ea;
    margin: 0 8px;
    border-radius: 2px;
    position: relative;
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px 24px;
    }
}
