/*
 * Sign-in pages, motion layer (after auth-split.css):
 * - the prayer-hall photo keeps drifting slowly after its opening zoom, under a soft moving gold light
 *   and a faint geometric pattern;
 * - the brand column comes in step by step (logo, name, tagline, gold rule, the four protections);
 * - the card rises in and its fields follow one after another;
 * - fields glow gold on focus, the main button gets a light sweep on hover, protection icons turn gold.
 * Only transform and opacity move. Everything is still for prefers-reduced-motion.
 */
.fa-bg-light,.fa-bg-pattern{position:absolute;inset:0;pointer-events:none;z-index:1}
.fa-bg-pattern{opacity:.5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 6l7.5 18.5L58 32l-18.5 7.5L32 58l-7.5-18.5L6 32l18.5-7.5z' fill='none' stroke='%23d4a73a' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E");background-size:64px 64px;-webkit-mask-image:linear-gradient(100deg,#000 0%,#000 40%,transparent 75%);mask-image:linear-gradient(100deg,#000 0%,#000 40%,transparent 75%)}
.fa-bg-light{opacity:0;background:radial-gradient(38% 60% at 30% 35%,rgba(241,202,98,.16),transparent 70%)}
.fa .fa-tagline::after{content:"";display:block;width:72px;height:2px;margin-top:14px;border-radius:2px;background:linear-gradient(90deg,#d4a73a,#f1ca62);transform-origin:left}
.fa .fa-secure .fhf-icon{transition:background-color .2s ease,color .2s ease,transform .2s ease}
.fa .fa-secure li:hover .fhf-icon{background:#d4a73a;color:#0b3b2e;transform:scale(1.06)}
.fa .auth-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
.fa .auth-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:#b47b2b!important;box-shadow:0 0 0 3px rgba(212,167,58,.22)!important;background-color:#fff!important}
.fa .auth-primary{position:relative;overflow:hidden;isolation:isolate}
.fa .auth-primary::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.22) 50%,transparent 70%);transform:translateX(-120%)}
.fa .auth-primary [aria-hidden=true]{display:inline-block;transition:transform .2s ease}
.fa .auth-primary:hover [aria-hidden=true]{transform:translateX(4px)}
.fa .auth-secondary{transition:border-color .2s ease,background-color .2s ease,transform .2s ease}
.fa .auth-secondary:hover{border-color:#b47b2b;transform:translateY(-1px)}

@media (prefers-reduced-motion:no-preference){
  @keyframes fam-drift{0%{transform:scale(1) translate3d(0,0,0)}50%{transform:scale(1.07) translate3d(-1.5%,-1%,0)}100%{transform:scale(1) translate3d(0,0,0)}}
  @keyframes fam-light{0%,100%{opacity:.6;transform:translate3d(-8%,0,0)}50%{opacity:1;transform:translate3d(14%,-4%,0)}}
  @keyframes fam-pattern{from{background-position:0 0}to{background-position:64px 64px}}
  @keyframes fam-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
  @keyframes fam-card{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
  @keyframes fam-rule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  @keyframes fam-sweep{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
  @keyframes fam-shield{0%,100%{transform:none}50%{transform:scale(1.15)}}
  /* The photo zooms in once (auth-split.css), then keeps a slow drift. */
  .fa-bg picture{animation:fam-drift 40s ease-in-out 16s infinite}
  .fa-bg-light{animation:fam-light 24s ease-in-out infinite}
  .fa-bg-pattern{animation:fam-pattern 50s linear infinite}
  /* Brand column, step by step (the column itself no longer slides as one block). */
  .fa .fa-intro{animation:none}
  .fa .auth-brand{animation:fam-in .55s cubic-bezier(.2,.7,.2,1) .05s both}
  .fa .fa-name{animation:fam-in .55s cubic-bezier(.2,.7,.2,1) .15s both}
  .fa .fa-tagline{animation:fam-in .55s cubic-bezier(.2,.7,.2,1) .25s both}
  .fa .fa-tagline::after{animation:fam-rule .6s cubic-bezier(.2,.7,.2,1) .55s both}
  /* Card, then its title and fields one after another. */
  .fa .fa-card{animation:fam-card .6s cubic-bezier(.2,.7,.2,1) .15s both}
  .fa .auth-card-body > :is(h1,.auth-subtitle){animation:fam-in .45s ease-out .3s both}
  .fa .auth-form > *{animation:fam-in .4s ease-out both}
  .fa .auth-form > :nth-child(2){animation-delay:.38s}.fa .auth-form > :nth-child(3){animation-delay:.44s}
  .fa .auth-form > :nth-child(4){animation-delay:.5s}.fa .auth-form > :nth-child(5){animation-delay:.56s}
  .fa .auth-form > :nth-child(6){animation-delay:.62s}.fa .auth-form > :nth-child(n+7){animation-delay:.68s}
  .fa .fa-card-foot{animation:fam-in .45s ease-out .75s both}
  .fa .fa-cloudflare .fhf-icon{animation:fam-shield .8s ease-in-out 1.1s 2}
  .fa .auth-primary:hover::before{animation:fam-sweep .8s ease}
  @media (max-width:1023px){
    .fa-bg picture,.fa-bg-light,.fa-bg-pattern{animation:none}
  }
}
@media (prefers-reduced-motion:reduce){.fa-bg-light,.fa-bg-pattern,.fa-bg picture{animation:none!important}}

/* Logo: on a light medallion so the mosque and its lettering stay crisp and readable over the photo. */
.fa .auth-brand a.fa-seal{display:inline-grid;place-items:center;padding:10px;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 12px 30px -8px rgba(0,0,0,.45),0 0 0 1px rgba(212,167,58,.5);transition:transform var(--fhm-dur-fast,220ms) var(--fhm-ease,ease),box-shadow var(--fhm-dur-fast,220ms)}
.fa .auth-brand a.fa-seal img{display:block;width:92px;height:auto;filter:none}
.fa .auth-brand a.fa-seal:hover{transform:translateY(-2px);box-shadow:0 16px 34px -10px rgba(0,0,0,.5),0 0 0 2px rgba(212,167,58,.7)}
@media (min-width:1024px) and (max-height:800px){.fa .auth-brand a.fa-seal img{width:72px}}
@media (max-width:1023px){
  .fa .auth-brand a.fa-seal{padding:4px;border-radius:12px}
  .fa .auth-brand a.fa-seal img{width:40px}
}
@media (max-width:420px){.fa .auth-brand a.fa-seal img{width:34px}}

/* Protection list: gold-outlined round badges with clean line icons. */
.fa .fa-secure li{grid-template-columns:40px minmax(0,1fr);gap:12px}
.fa .fa-secure .fhf-icon{width:40px;height:40px;padding:10px;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(241,202,98,.28),rgba(212,167,58,.1) 70%);box-shadow:inset 0 0 0 1px rgba(241,202,98,.45);color:#f1ca62}
.fa .fa-secure li:hover .fhf-icon{background:#d4a73a;color:#0b3b2e;box-shadow:0 0 0 4px rgba(212,167,58,.18)}
.fa .fa-secure span{color:rgba(255,255,255,.82)}
.fa .fa-secure strong{letter-spacing:.01em}
@media (prefers-reduced-motion:no-preference){
  .fa .fa-secure li:hover .fhf-icon{animation:fam-pop .45s var(--fhm-ease-spring,ease) 1}
  @keyframes fam-pop{0%{transform:scale(1)}50%{transform:scale(1.12)}100%{transform:scale(1.06)}}
}

/* Phones: the whole sign-in fits on one screen on common phones (iPhone 13 / Pixel size and up). */
@media (max-width:600px){
  .fa .fa-shell{padding-bottom:8px}
  .fa .fa-intro{padding-bottom:10px}
  .fa .auth-card-body{padding-top:14px;padding-bottom:12px}
  .fa .auth-card-body h1{font-size:24px;margin:0}
  .fa .auth-subtitle{margin-top:2px}
  .fa .auth-form{gap:8px;margin-top:8px}
  .fa .auth-form .fhf-field{gap:4px}
  .fa .auth-form .fhf-input{min-height:44px}
  .fa .auth-form > .auth-help{display:none}
  .fa .auth-or{margin:6px 0}
  .fa .auth-secondary{min-height:42px}
  .fa .auth-register{margin-top:6px;padding-top:8px}
  .fa .fa-card-foot{padding:6px 16px 8px;gap:2px 10px}
}
@media (max-width:600px) and (max-height:700px){
  .fa .auth-subtitle{display:none}
  .fa .auth-kind{display:none}
}
