/* Existing portal controls on a shared blue authentication background.
   UNICEF cyan reference: https://www.unicef.org/jordan/media/7166/file/ANNEX_G_-_Brand_book_V3.1.pdf
   The deeper blues retain this project's established WHO-inspired palette. */
html body.ipc-app.ipc-auth{
  background-color:#0093d5;
  background-image:radial-gradient(ellipse at 15% 12%,#ffffff4d,transparent 44%),radial-gradient(ellipse at 90% 88%,#003f7366,transparent 50%),linear-gradient(135deg,#1cabe2 0%,#0093d5 48%,#005b8f 100%);
  background-attachment:fixed;min-height:100vh;min-height:100dvh;padding:24px 16px;
}
html.dark body.ipc-app.ipc-auth{background-color:#0d2034;background-image:radial-gradient(ellipse at 12% 12%,#1cabe22e,transparent 45%),radial-gradient(ellipse at 88% 90%,#0093d529,transparent 48%),linear-gradient(135deg,#0c3651,#12263d 55%,#07111e);}
html .ipc-auth .card{padding:24px 28px;max-width:440px;border:1px solid #ffffff80;border-radius:var(--ipc-radius,8px);box-shadow:0 16px 52px #003f7333;background:var(--ipc-card);}
html.dark .ipc-auth .card{border-color:#42627b80;box-shadow:0 16px 52px #0005;}
.ipc-auth .card::before{background:linear-gradient(90deg,#1cabe2,#0093d5,#005b8f);}
.auth-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:20px;}
.ipc-auth .auth-toolbar :is(.ipc-language-switch,.ipc-theme-toggle){position:static;inset:auto;transform:none;margin:0;box-shadow:none;}
.ipc-auth .auth-toolbar .ipc-language-switch{display:inline-flex;border:0;padding:0;}
.ipc-auth .auth-toolbar :is(.ipc-theme-toggle,.auth-language-icon){display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--ipc-line);border-radius:8px;background:var(--ipc-card);color:var(--ipc-brand-dark);cursor:pointer;}
.ipc-auth .auth-toolbar svg{width:21px;height:21px;flex-shrink:0;}
.ipc-auth .auth-toolbar :is(.ipc-theme-toggle,.auth-language-icon):hover{background:var(--ipc-soft);border-color:var(--ipc-brand);}
.ipc-auth .auth-toolbar [hidden]{display:none!important;}
.ipc-auth .logo{margin-bottom:24px;}.ipc-auth .logo h1{font-size:23px;line-height:1.45;text-wrap:balance;overflow-wrap:anywhere;}.ipc-auth .logo p{font-size:14px;line-height:1.7;margin-top:8px;}
.ipc-auth .auth-links{display:grid;gap:2px;margin-top:14px;}.ipc-auth .auth-links .login-help-link{margin:0;min-height:40px;font-size:13px;line-height:1.7;text-align:center;padding:6px;}
.auth-footer{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--ipc-line);margin-top:18px;padding-top:12px;}
.auth-admin-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:6px 12px;font-size:12px;color:var(--ipc-muted);text-decoration:none;border-radius:8px;}.auth-admin-link:hover{color:var(--ipc-brand-dark);background:var(--ipc-soft);}.auth-admin-link svg{flex-shrink:0;}
.ipc-auth :is(.auth-toolbar button,.auth-admin-link):focus-visible{outline:3px solid var(--ipc-brand);outline-offset:3px;}
@media(max-width:480px){html body.ipc-app.ipc-auth{padding:16px 12px;}html .ipc-auth .card{padding:20px;}.auth-toolbar{margin-bottom:18px;}.ipc-auth .logo h1{font-size:21px;}.ipc-auth .logo{margin-bottom:22px;}}
@media(prefers-reduced-motion:reduce){.ipc-auth *{scroll-behavior:auto!important;}}

/* Decorative partner artwork; keep the form opaque and above the watermarks. */
html body.ipc-app.ipc-auth{isolation:isolate;}
html body.ipc-auth::before,html body.ipc-auth::after{
  content:"";position:fixed;z-index:0;pointer-events:none;
  background-repeat:no-repeat;background-position:center;background-size:contain;
  filter:brightness(0) invert(1);opacity:.18;
}
html body.ipc-auth::before{
  background-image:url("brand/who-logo.svg");
  top:15vh;left:5vw;width:min(26vw,380px);height:120px;
}
html body.ipc-auth::after{
  background-image:url("brand/unicef-logo.webp");
  bottom:16vh;right:5vw;width:min(29vw,420px);height:70px;
}
html .ipc-auth>.card{position:relative;z-index:1;}
html.dark body.ipc-auth::before,html.dark body.ipc-auth::after{opacity:.12;}
@media(max-width:1000px){
  html body.ipc-auth::before{top:22px;left:24px;width:170px;height:54px;opacity:.15;}
  html body.ipc-auth::after{bottom:20px;right:24px;width:240px;height:36px;opacity:.15;}
}
@media print{html body.ipc-auth::before,html body.ipc-auth::after{display:none;}}
