body.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.page-auth .card {
    max-width: 560px;
    width: 100%;
    background: white;
    border-radius: 40px;
    padding: 48px 44px;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.15);
    border: 1px solid #edf2f7;
    text-align: left;
}

.page-auth .logo {
    text-align: center;
    margin-bottom: 40px;
    background: none;
    color: inherit;
}

.page-auth .logo a {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.page-auth .logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.page-auth .tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    border-bottom: 1px solid #e5e7eb;
}

.page-auth .tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.page-auth .tab-btn.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.page-auth .login-mode-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.page-auth .login-mode-btn {
    flex: 1;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.page-auth .login-mode-btn.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.page-auth .form-container {
    transition: all 0.2s;
}

.page-auth .form-group {
    margin-bottom: 28px;
}

.page-auth label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #374151;
}

.page-auth .title {
    text-align: center;
    margin-bottom: 32px;
}

.page-auth .title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.page-auth input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 48px;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
    background: #fff;
}

.page-auth input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.page-auth .captcha-row,
.page-auth .verify-code-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.page-auth .captcha-input,
.page-auth .verify-code-input {
    flex: 1;
}

.page-auth .captcha-img {
    width: 130px;
    height: 52px;
    background: #f3f4f6;
    border-radius: 48px;
    display: block;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    user-select: none;
    object-fit: cover;
    transition: background 0.2s, transform 0.2s;
}

.page-auth .captcha-img:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.page-auth .captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0 8px;
    color: #6b7280;
    transition: color 0.2s;
}

.page-auth .captcha-refresh:hover {
    color: #2563eb;
}

.page-auth .btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 48px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 16px;
}

.page-auth .extra-links {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 0.9rem;
}

.page-auth .extra-links a,
.page-auth .extra-links a:hover {
    color: #2563eb;
    text-decoration: none;
}

.page-auth .third-party {
    margin-top: 36px;
    text-align: center;
}

.page-auth .third-party p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
    position: relative;
}

.page-auth .third-party p::before,
.page-auth .third-party p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #e5e7eb;
}

.page-auth .third-party p::before {
    left: 0;
}

.page-auth .third-party p::after {
    right: 0;
}

.page-auth .social-buttons {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.page-auth .social-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-auth .social-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.page-auth .error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 6px;
    margin-left: 16px;
    display: none;
}

.page-auth .error-msg.show {
    display: block;
}

/* 记住我复选框样式 */
.page-auth .remember-me {
    margin-bottom: 20px;
}

.page-auth .remember-me .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0;
}

.page-auth .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    accent-color: #2563eb;
}

.page-auth .remember-me input[type="checkbox"]:checked {
    border-color: #2563eb;
}

.page-auth .send-code-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0 20px;
    border-radius: 48px;
    height: 52px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.page-auth .send-code-btn:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
}

.page-auth .send-code-btn:not(:disabled):hover {
    background: #e5e7eb;
    border-color: #2563eb;
}

@media (max-width: 600px) {
    .page-auth .card {
        padding: 32px 24px;
    }
    .page-auth .captcha-row,
    .page-auth .verify-code-row {
        flex-wrap: wrap;
    }
    .page-auth .captcha-img,
    .page-auth .send-code-btn {
        width: 100%;
        margin-top: 8px;
    }
}
