/* 容器样式 */
.forgot-password-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 标题 */
.forgot-password-container h2 {
    text-align: center;
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 25px;
}

/* 表单段落 */
.forgot-password-container form p {
    margin-bottom: 18px;
}
/* Label 与输入框分开 */
.forgot-password-form label {
    display: block;       /* 让 label 独占一行 */
    margin-bottom: 6px;   /* label 与输入框之间距离 */
    font-weight: 600;
    color: #2d3748;
}


/* 输入框 */
.forgot-password-container input[type="text"],
.forgot-password-container input[type="email"],
.forgot-password-container input[type="submit"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 输入框聚焦 */
.forgot-password-container input[type="text"]:focus,
.forgot-password-container input[type="email"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    outline: none;
}

/* 提交按钮 */
.forgot-password-container input[type="submit"] {
    background-color: #667eea;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.forgot-password-container input[type="submit"]:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
}

/* 成功/错误提示 */
.reset-message,
.reset-error {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 6px;
}

.reset-message {
    background-color: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
}

.reset-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* 底部链接 */
.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links p {
    margin: 6px 0;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 480px) {
    .forgot-password-container {
        padding: 20px;
        margin: 30px 10px;
    }
    .forgot-password-container h2 {
        font-size: 20px;
    }
    .forgot-password-container input[type="text"],
    .forgot-password-container input[type="email"],
    .forgot-password-container input[type="submit"] {
        font-size: 14px;
        padding: 10px 12px;
    }
}


/* 重置密码页面样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.reset-password-container,
.forgot-password-container {
    max-width: 400px;
    margin: 80px auto;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

form p {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #005177;
}

.reset-error {
    color: #d93025;
    font-weight: 600;
    margin-top: 10px;
}

.reset-message {
    color: #0a7c27;
    font-weight: 600;
    margin-top: 10px;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #0073aa;
    text-decoration: none;
    margin: 0 10px;
}

.login-links a:hover {
    text-decoration: underline;
}