/* css/forgot_password.css - 忘记密码页面样式 */

.login-container {
    width: 80%;
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

.auth-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dbe1e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #f8fafc;
}

.form-control:hover {
    border-color: #b8c2cc;
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.form-help i {
    color: #3498db;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: white;
    color: #3498db;
    border-color: #dbe1e8;
}

.btn-outline:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* 警告消息样式 */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #c62828;
    color: #c62828;
    box-shadow: 0 3px 12px rgba(198, 40, 40, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6 0%, #a3e4c1 100%);
    border-left: 4px solid #27ae60;
    color: #27ae60;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #3498db;
    color: #2c3e50;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.1);
}

.alert a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.alert a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.alert small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* 页脚样式 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer p {
    margin: 10px 0;
    line-height: 1.5;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    margin: 0 5px;
}

.auth-footer a:hover {
    color: #2980b9;
    text-decoration: none;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer a:hover:after {
    transform: scaleX(1);
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .btn {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .auth-card {
        padding: 15px 12px;
    }
    
    .form-help {
        font-size: 12px;
    }
    
    .auth-footer p {
        font-size: 13px;
    }
}

/* 针对小高度屏幕 */
@media (max-height: 700px) {
    .login-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .auth-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}