/* ========================================
   忘记密码页 - forgot-password.php 专用样式（PC端）
   设计系统 v4.0
   ======================================== */

/* ===== 页面氛围背景 ===== */
body {
    background-color: var(--color-bg-body);
}
body::before {
    content: '✉';
    position: fixed;
    font-size: 200px;
    opacity: 0.03;
    top: -60px;
    right: -40px;
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '✉';
    position: fixed;
    font-size: 120px;
    opacity: 0.025;
    bottom: 40px;
    left: -30px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}
.fp-deco {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}
.fd-plane {
    top: 8%;
    right: 8%;
    font-size: 36px;
    opacity: 0.15;
    animation: fdFloat 8s ease-in-out infinite;
}
.fd-dot1 {
    top: 15%;
    left: 10%;
    width: 12px;
    height: 12px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    animation: fdFloat 6s ease-in-out infinite;
}
.fd-dot2 {
    bottom: 20%;
    right: 15%;
    width: 8px;
    height: 8px;
    background: rgba(255, 193, 150, 0.15);
    border-radius: 50%;
    animation: fdFloat 5s ease-in-out infinite 1s;
}
.fd-dot3 {
    top: 40%;
    left: 5%;
    width: 6px;
    height: 6px;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 50%;
    animation: fdFloat 7s ease-in-out infinite 0.5s;
}
.fd-star {
    top: 25%;
    right: 20%;
    font-size: 20px;
    opacity: 0.1;
    animation: fdTwinkle 3s ease-in-out infinite;
}
@keyframes fdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes fdTwinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.25; }
}

.auth-card {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px 36px 32px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}
.auth-logo {
    text-align: center;
    margin-bottom: 8px;
    font-size: 36px;
}
.auth-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    font-size: var(--font-size-body);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    color: var(--color-text-primary);
    transition: all 0.25s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}
.form-control::placeholder {
    color: var(--color-text-placeholder);
}

.btn-auth {
    width: 100%;
    padding: 13px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(122,178,211,0.3);
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(122,178,211,0.4);
    background: var(--color-primary-dark);
}
.btn-auth:active {
    transform: scale(0.98);
}

.auth-error {
    color: var(--color-danger);
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #fef5f5;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-danger);
    font-size: 13px;
    line-height: 1.6;
}
.auth-error p {
    margin-bottom: 0;
}
.auth-error p + p {
    margin-top: 4px;
}
.success-message {
    color: #2d7a4f;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #eaf7ef;
    border-radius: var(--radius-md);
    border-left: 3px solid #a8e6cf;
    font-size: 13px;
}
.auth-links {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
}
.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s;
}
.auth-links a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* 验证码组——Flex 完美对齐 */
.captcha-row {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
}
.captcha-row .form-control {
    flex: 1;
    min-width: 120px;
}
.captcha-row img {
    height: 42px;
    width: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    cursor: pointer;
    flex-shrink: 0;
}
