/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, #e5f6ee 0%, #f4f8ff 45%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    width: 420px;
    height: 420px;
    background: rgba(7, 193, 96, 0.12);
    top: -120px;
    right: -80px;
}

.login-page::after {
    width: 320px;
    height: 320px;
    background: rgba(24, 144, 255, 0.08);
    bottom: -100px;
    left: -60px;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 40px 36px 32px;
    text-align: center;
}

.login-brand {
    margin-bottom: 28px;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f0faf4 100%);
    box-shadow: 0 12px 28px rgba(7, 193, 96, 0.18), 0 0 0 1px rgba(7, 193, 96, 0.08);
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.login-brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin: 0;
}

.login-brand-tagline {
    margin: 10px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
    color: #bbb;
}

.input-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #07c160 0%, #06a050 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 193, 96, 0.4);
}

.login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.5;
}

.login-error.show {
    display: block;
}

.auth-form-hidden {
    display: none;
}

.auth-switch {
    margin-top: 16px;
    text-align: center;
}

.auth-switch-btn {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
}

.auth-switch-btn:hover {
    text-decoration: underline;
}

.auth-switch-hidden {
    display: none;
}

.verify-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.verify-code-input {
    flex: 1;
    min-width: 0;
}

.send-code-btn {
    flex-shrink: 0;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.send-code-btn:hover:not(:disabled) {
    background: rgba(7, 193, 96, 0.08);
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    background: #f5f5f5;
    transition: color 0.2s, background 0.2s;
}

.back-home:hover {
    color: var(--primary);
    background: rgba(7, 193, 96, 0.1);
}

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

    .login-logo-wrap {
        width: 80px;
        height: 80px;
    }

    .login-logo {
        width: 64px;
        height: 64px;
    }

    .login-brand-name {
        font-size: 1.75rem;
    }
}
