.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: 0;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    border-left: 4px solid var(--danger);
}

.success-message {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    border-left: 4px solid #22c55e;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-form .form-row {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(17, 24, 39, 0.05);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--blue-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.auth-form input::placeholder {
    color: var(--muted);
    font-size: 15px;
}

.auth-form input:readonly {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-form .actions {
    margin-top: 32px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

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

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
}

.auth-link {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--blue-700);
}

.auth-link:hover::after {
    width: 100%;
}

.verify-form {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
    position: relative;
}

.debug-code-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid #fcd34d;
}

.debug-code {
    font-size: 32px;
    font-weight: 700;
    color: #b45309;
    letter-spacing: 4px;
    margin: 8px 0;
    display: block;
}

.debug-note {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.info-message {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--blue-800);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid #93c5fd;
}

.info-note {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.verify-form::before {
    content: '验证码验证';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 登录方式切换样式 */
.login-method-switch {
    margin-bottom: 24px;
}

.method-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 8px;
}

.method-tab {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.method-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-600);
}

.method-tab.active {
    background: white;
    color: var(--blue-700);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.method-tab.active .method-icon {
    color: var(--blue-700);
}

.method-icon {
    font-size: 16px;
    transition: color 0.3s ease;
}

/* 隐私政策和服务条款复选框样式 */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 2px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--blue-500);
    transition: all 0.2s ease;
}

.terms-checkbox input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.terms-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.terms-link {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-link:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
        margin: 20px 0;
    }
    
    .auth-card h2 {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .terms-label {
        font-size: 13px;
    }
}
