/* =============================================================================
   IFPO-MENASA account pages (password recovery, reset, invite set-up) rendered
   through templates/ifpo/auth/shell.html. Same look as ifpo/auth/login.html,
   whose styles stay inline there. Namespaced .ifpo-* so nothing else is affected.
   ============================================================================= */
:root {
	--ifpo-navy: #213A72;
	--ifpo-navy-deep: #182B56;
	--ifpo-gold: #F4B52D;
	--ifpo-gold-deep: #DE9F12;
	--ifpo-warm: #F7F5EF;
	--ifpo-blue: #2D4A8A;
	--ifpo-muted: #5A6A80;
	--ifpo-line: #E6E9EE;
	--ifpo-danger: #D92D20;
	--ifpo-danger-soft: #FDECEA;
	--ifpo-teal-text: #0B5658;
	--ifpo-teal-soft: #DFF3F0;
	--ifpo-warn-text: #8A5A00;
	--ifpo-warn-soft: #FFF3D6;
	--ifpo-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body.ifpo-auth { margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr); background: var(--ifpo-warm); font-family: var(--ifpo-font); color: var(--ifpo-navy); }

.ifpo-login-art { position: relative; background: var(--ifpo-navy) center bottom/cover no-repeat; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 40px 48px; color: #fff; overflow: hidden; }
.ifpo-login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,43,86,.96) 0%, rgba(33,58,114,.55) 38%, rgba(33,58,114,.70) 62%, rgba(24,43,86,.97) 100%); }
.ifpo-login-art > * { position: relative; z-index: 1; }
.ifpo-login-logo { height: 56px; width: auto; display: block; align-self: flex-start; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.ifpo-login-art h2 { font-family: "Libre Caslon Text", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1.18; margin: 0; color: #fff; max-width: 480px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.ifpo-rule { display: block; width: 56px; height: 3px; background: var(--ifpo-gold); border-radius: 2px; margin: 22px 0 18px; }
.ifpo-tag-ar { font-family: "Tajawal", sans-serif; font-size: 20px; color: var(--ifpo-gold); text-align: start; }
.ifpo-tag-en { font-size: 11.5px; letter-spacing: 2.4px; color: rgba(255,255,255,.8); margin-top: 6px; }

.ifpo-login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ifpo-login-box { width: 100%; max-width: 440px; background: #fff; border: 1px solid #ECE8DE; border-radius: 16px; padding: 36px 36px 28px; box-shadow: 0 12px 40px -18px rgba(33,58,114,.25); }
.ifpo-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #FDF3DC; color: var(--ifpo-gold-deep); font-size: 24px; margin-bottom: 14px; }
.ifpo-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ifpo-gold-deep); }
.ifpo-login-box h1 { font-size: 26px; font-weight: 800; margin: 10px 0 6px; }
.ifpo-sub { color: var(--ifpo-muted); font-size: 14.5px; margin: 0; line-height: 1.5; }

.ifpo-alert { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-top: 16px; line-height: 1.45; }
.ifpo-alert.bad { background: var(--ifpo-danger-soft); color: #9B1C12; }
.ifpo-alert.ok { background: var(--ifpo-teal-soft); color: var(--ifpo-teal-text); }
.ifpo-alert.warn { background: var(--ifpo-warn-soft); color: var(--ifpo-warn-text); }
.ifpo-alert[hidden] { display: none; }

.ifpo-form { margin-top: 22px; }
.ifpo-field { margin-bottom: 14px; }
.ifpo-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ifpo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ifpo-input-wrap { position: relative; }
.ifpo-input { width: 100%; height: 46px; border: 1px solid #D5DBE3; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14.5px; color: var(--ifpo-navy); background: #fff; }
.ifpo-input:focus { outline: none; border-color: var(--ifpo-blue); box-shadow: 0 0 0 3px rgba(33,58,114,.15); }
.ifpo-input-wrap .ifpo-input { padding-inline-end: 46px; }
.ifpo-eye { position: absolute; inset-inline-end: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--ifpo-muted); border-radius: 8px; cursor: pointer; font-size: 18px; }
.ifpo-eye:focus-visible { outline: 2px solid var(--ifpo-blue); }
.ifpo-hint { font-size: 12.5px; color: var(--ifpo-muted); margin: -4px 0 16px; line-height: 1.45; }

.ifpo-link { color: var(--ifpo-blue); font-weight: 600; text-decoration: none; }
.ifpo-link:hover { text-decoration: underline; }
.ifpo-back { display: block; text-align: center; margin-top: 16px; font-size: 13.5px; }

.ifpo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.ifpo-btn.primary { width: 100%; background: var(--ifpo-gold); color: var(--ifpo-navy); } /* navy on gold: white fails contrast */
.ifpo-btn.primary:hover { background: var(--ifpo-gold-deep); }
.ifpo-btn.primary:disabled { opacity: .65; cursor: wait; }
.ifpo-btn:focus-visible { outline: 2px solid var(--ifpo-blue); outline-offset: 2px; }

.ifpo-foot { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--ifpo-line); font-size: 12px; color: var(--ifpo-muted); text-align: center; }

@media (max-width: 960px) {
	body.ifpo-auth { grid-template-columns: 1fr; }
	.ifpo-login-art { min-height: 200px; padding: 24px 20px; }
	.ifpo-login-art h2 { font-size: 26px; }
	.ifpo-login-logo { height: 44px; }
	.ifpo-login-panel { padding: 24px 16px 40px; }
	.ifpo-login-box { padding: 28px 22px 22px; }
}
@media (max-width: 480px) {
	.ifpo-two { grid-template-columns: 1fr; gap: 0; }
}

/* IFPO MENASA emblem on a white badge + page watermark (client artwork 2026-10-23) */
.ifpo-login-logo { height: 104px; background: #fff; padding: 8px 12px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
body.ifpo-auth::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; background: url("/images/ifpo/ifpo-watermark.png") center / min(62vmin, 640px) auto no-repeat; opacity: .05; }
@media (max-width: 960px) { .ifpo-login-logo { height: 76px; } }
