/* Dedicated authentication layout; independent of homepage and portal styling. */
* { box-sizing: border-box; }
body { margin: 0; }
.authentication-page { background: #f7f9f7; color: #1c2a1e; font-family: 'Nunito', sans-serif; line-height: 1.5; padding: clamp(20px, 4vh, 40px) 20px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* Auto margins center the complete group and collapse when content needs to scroll. */
.auth-shell { flex: 0 0 auto; width: 100%; max-width: 460px; margin: auto; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; color: #1e3b2b; text-decoration: none; }
.auth-brand img { object-fit: contain; }
.auth-brand span { font-family: 'Lora', serif; font-size: 24px; font-weight: 700; }
.auth-brand small { display: block; font-family: 'Nunito', sans-serif; font-size: 12px; letter-spacing: 2px; }
[hidden] { display: none !important; }
.form-header { text-align: center; margin-bottom: 20px; }
.form-header h1, .form-header h2 { font-family: 'Lora', serif; font-size: clamp(24px, 5vw, 28px); margin: 0 0 6px; line-height: 1.3; }
.form-header p { color: #526158; margin: 0; }
.form-card { margin: 0; background: #fff; border: 1px solid #dfe6df; border-radius: 16px; padding: 28px; box-shadow: 0 8px 26px rgb(30 59 43 / 6%); }
.input-group { margin-bottom: 16px; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.input-wrapper { position: relative; }
.input-wrapper input { display: block; width: 100%; min-height: 48px; border: 1px solid #cbd5cc; border-radius: 9px; padding: 11px 48px 11px 40px; background: #fff; color: #1c2a1e; font: inherit; font-size: 16px; }
.input-wrapper .left-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #647568; pointer-events: none; }
.password-toggle { position: absolute; inset: 0 2px 0 auto; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #526158; font-size: 16px; cursor: pointer; }
.password-toggle i { line-height: 1; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #427454; outline-offset: 3px; }
small, .input-group small { display: block; color: #526158; font-size: 13px; margin: 6px 0; }
.btn-primary { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; background: #1e3b2b; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.btn-primary:hover { background: #152b1f; }
a { color: #1e3b2b; font-weight: 800; text-underline-offset: 3px; }
.forgot-password { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; margin-bottom: 8px; font-size: 14px; }
.form-footer { text-align: center; margin-top: 14px; font-size: 14px; }
.form-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; min-height: 44px; }
.checkbox-group input { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: #1e3b2b; }
.checkbox-group label { font-weight: 600; cursor: pointer; margin: 0; }
.field-error, .notice.error { color: #a52222; font-size: 14px; margin: 6px 0; }
.field-error:empty { display: none; }
.field-error { overflow-wrap: anywhere; }
.notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.notice.success { color: #166534; background: #ecfdf3; }
.recovery-icon { color: #1e3b2b; margin-bottom: 10px; }
@media (max-width: 480px) { .authentication-page { padding: 20px 16px; } .form-card { padding: 20px 16px; } .auth-brand { margin-bottom: 16px; } }
