/* ============================================================
   Acorn Valley HOA — Auth Page Styles
   Used by login.jsp, register.jsp, forgot-password.jsp, reset-password.jsp
   ============================================================ */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f7f3ed 0%, #eee8df 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    color: #3A3530;
}

/* === Wrapper (centers the card vertically) === */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-container { max-width: 480px; width: 100%; }
/* wider variant for register */
.auth-container.wide { max-width: 520px; }

/* === Header (logo + title) === */
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header .logo-icon {
    width: 64px; height: 64px;
    background: #4A7C59;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}
.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #5B3A29;
}
.auth-header p { color: #6B6560; margin-top: 4px; font-size: 0.92rem; }

/* === Card === */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(91,58,41,0.12);
}

/* === Form Groups === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 500;
    margin-bottom: 6px; color: #3A3530; font-size: 0.9rem;
}
.form-group input,
.form-group select {
    width: 100%; padding: 12px 16px;
    border: 2px solid #E5DDD3; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem;
    background: #FFFDF9; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none; border-color: #4A7C59;
}
.form-group .hint { font-size: 0.82rem; color: #6B6560; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* === Full-width submit buttons === */
.btn-auth {
    width: 100%; padding: 14px;
    background: #4A7C59; color: white;
    border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
    font-family: inherit;
}
.btn-auth:hover { background: #345A3E; }

/* === Messages === */
.error-msg {
    background: #FFEBEE; border: 1px solid #EF9A9A;
    color: #C62828; padding: 12px 16px;
    border-radius: 10px; margin-bottom: 20px;
    font-size: 0.9rem;
}
.success-msg {
    background: #E8F5E9; border: 1px solid #A5D6A7;
    color: #2E7D32; padding: 12px 16px;
    border-radius: 10px; margin-bottom: 20px;
    font-size: 0.9rem;
}
.success-msg h3 { margin-bottom: 8px; }

.info-text {
    color: #6B6560; font-size: 0.9rem; margin-bottom: 24px;
    line-height: 1.6;
}

/* === Password rules box === */
.password-rules {
    background: #FAF6F0; border: 1px solid #E5DDD3;
    border-radius: 10px; padding: 14px 18px; margin-bottom: 24px;
    font-size: 0.85rem; color: #6B6560;
}
.password-rules strong { color: #5B3A29; }

/* === Footer links === */
.auth-footer {
    text-align: center; margin-top: 20px;
    font-size: 0.85rem; color: #6B6560;
}
.auth-footer a { color: #4A7C59; text-decoration: none; font-weight: 500; }
.back-link {
    display: block; text-align: center;
    margin-top: 24px; color: #6B6560;
    text-decoration: none; font-size: 0.9rem;
}
.back-link:hover { color: #3A3530; }

/* === Responsive === */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
}
