/* 基础样式已在 common.css 中定义 */
body {
    padding-top: 80px; /* 为固定头部留出空间 */
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

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

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.login-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-form h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9fafb;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #0066ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #0066ff 0%, #0080ff 50%, #00bfff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: #666;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* 重新发送验证码按钮 */
.btn-resend {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: #0066ff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-resend:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* 倒计时文本 */
.resend-code {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

#countdownText {
    display: block;
}

/* 只读输入框样式 */
input[readonly] {
    background-color: #f3f4f6 !important;
    cursor: not-allowed;
}

.error-message {
    color: #ef4444;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
}

.success-message {
    color: #10b981;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
    }
}
