/* 认证页面样式 - 登录、注册、忘记密码等 */

/* 认证容器样式 */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.forgot-container {
    max-width: 550px;
    margin: 80px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Logo区域样式 */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h2 {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.logo p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #6c757d;
}

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #0d6efd;
    color: white;
}

.step.completed {
    background-color: #28a745;
    color: white;
}

.step-text {
    position: absolute;
    top: 42px;
    font-size: 13px;
    color: #6c757d;
    width: 100px;
    text-align: center;
    left: -32px;
    font-weight: 500;
}

/* 验证码输入框样式 */
.verification-code-input {
    letter-spacing: 0.5em;
    font-size: 1.5em;
    text-align: center;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* 重发按钮样式 */
.resend-btn {
    cursor: pointer;
    background: none;
    border: none;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.resend-btn:hover:not(:disabled) {
    color: #0056b3;
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: none;
}

/* 表单增强样式 */
.auth-container .form-control,
.login-container .form-control,
.forgot-container .form-control {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.auth-container .form-control:focus,
.login-container .form-control:focus,
.forgot-container .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

/* 按钮增强样式 */
.auth-container .btn,
.login-container .btn,
.forgot-container .btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-container .btn-primary,
.login-container .btn-primary,
.forgot-container .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.auth-container .btn-primary:hover,
.login-container .btn-primary:hover,
.forgot-container .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.auth-container .btn-link,
.login-container .btn-link,
.forgot-container .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-container .btn-link:hover,
.login-container .btn-link:hover,
.forgot-container .btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 链接样式 */
.auth-container .text-center a,
.login-container .text-center a,
.forgot-container .text-center a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-container .text-center a:hover,
.login-container .text-center a:hover,
.forgot-container .text-center a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 表单标签样式 */
.auth-container .form-label,
.login-container .form-label,
.forgot-container .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 间距调整 */
.auth-container .mb-3,
.login-container .mb-3,
.forgot-container .mb-3 {
    margin-bottom: 1.5rem !important;
}

.auth-container .mb-4,
.login-container .mb-4,
.forgot-container .mb-4 {
    margin-bottom: 2rem !important;
}

/* 警告框样式 */
.auth-container .alert,
.login-container .alert,
.forgot-container .alert {
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    border: none;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .auth-container,
    .login-container,
    .forgot-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    .step-indicator {
        padding: 0 10px;
    }
    
    .step {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 12px;
        width: 80px;
        left: -24px;
    }
    
    .verification-code-input {
        font-size: 1.2em;
        letter-spacing: 0.3em;
    }
}

/* 动画效果 */
.auth-container,
.login-container,
.forgot-container {
    animation: slideUp 0.5s ease-out;
}

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

/* 加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
