/* Pure Mail auth screens (logim system). Fonts + images served locally. */


/* =========================================================
   PURE MAIL ENTERPRISE LOGIN
========================================================= */

:root{
  --blue:#1768d7;
  --blue-dark:#0d4fae;
  --blue-soft:#edf4ff;

  --navy:#0b2f61;
  --navy-dark:#071e40;

  --gold:#e9b248;

  --green:#168b61;
  --green-soft:#eaf8f2;

  --red:#d94a58;
  --red-soft:#fff1f2;

  --ink:#172338;
  --text:#4d5b70;
  --muted:#7e8b9e;

  --line:#c7d1dd;
  --line-light:#e1e7ee;

  --white:#fff;
  --surface:#f8fafc;

  --shadow:
    0 18px 50px rgba(20,39,64,.10),
    0 5px 16px rgba(20,39,64,.06);
}


/* =========================================================
   RESET
========================================================= */

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

body{
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background:#fff;
  color:var(--text);

  -webkit-font-smoothing:antialiased;
}

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  color:inherit;
}

svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================================
   PAGE GRID
========================================================= */

.login-shell{
  min-height:100vh;

  display:grid;

  grid-template-columns:
    minmax(570px,47%)
    minmax(620px,53%);
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel{
  min-height:100vh;

  display:flex;
  flex-direction:column;

  position:relative;

  z-index:10;

  padding:
    34px
    clamp(42px,5vw,82px)
    30px;

  background:#fff;

  border-right:
    1px solid
    #dce3eb;
}


/* =========================================================
   BRAND BAR
========================================================= */

.brand-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:24px;
}

.brand{
  display:flex;
  align-items:center;

  gap:14px;
}

.brand-logo-box{
  width:58px;
  height:58px;

  display:grid;
  place-items:center;

  flex:none;

  border:
    2px solid
    #c3cfdd;

  border-radius:16px;

  background:#fff;

  box-shadow:
    0 8px 19px
    rgba(15,44,80,.09);
}

.brand-logo-box img{
  width:40px;
  height:40px;

  object-fit:contain;
}

.brand-copy strong{
  display:block;

  color:var(--ink);

  font-size:21px;

  line-height:1;

  font-weight:950;

  letter-spacing:-.6px;
}

.brand-copy span{
  display:block;

  margin-top:5px;

  color:#8995a6;

  font-size:9px;

  font-weight:900;

  letter-spacing:1.1px;

  text-transform:uppercase;
}


/* =========================================================
   PRIVATE SERVER STATUS
========================================================= */

.brand-icons{position:relative;width:76px;height:76px;flex:none;background:transparent}
/* Wind lining: soft streaks flowing behind the icons like cloud wind. */
.brand-wind{position:absolute;left:50%;top:50%;width:118px;height:76px;transform:translate(-50%,-50%);overflow:visible;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent)}
.brand-wind path{fill:none;stroke:#9dbfe8;stroke-width:1.6;stroke-linecap:round;opacity:.55;
  stroke-dasharray:26 30;animation:windFlow 3.6s linear infinite}
.brand-wind path:nth-child(2){animation-duration:4.6s;opacity:.4}
.brand-wind path:nth-child(3){animation-duration:5.4s;opacity:.32}
@keyframes windFlow{to{stroke-dashoffset:-112}}
/* One icon at a time, cycling in sequence like a flow. */
.brand-icons>div{position:absolute;inset:0;display:grid;place-items:center;background:transparent;opacity:0;animation:brandFlow 12s ease-in-out infinite}
.brand-icons .cloud-sync{animation-delay:0s}
.brand-icons .cloud-folder{animation-delay:4s}
.brand-icons .lock-cycle{animation-delay:8s}
@keyframes brandFlow{
  0%{opacity:0;transform:translateY(16px) scale(.9);filter:blur(4px)}
  5%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  28%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  33%,100%{opacity:0;transform:translateY(-16px) scale(.95);filter:blur(4px)}
}
.cloud-sync svg{
  width:72px;
  height:72px;

  stroke:var(--blue);
  fill:none;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:cloudBob 3.2s ease-in-out infinite;
}
.cloud-folder svg{
  width:60px;
  height:60px;

  stroke:var(--blue);
  fill:none;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:folderTilt 6s ease-in-out infinite;
  transform-origin:50% 85%;
}
@keyframes folderTilt{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.lock-cycle svg{
  width:54px;
  height:54px;

  stroke:var(--blue);
  fill:none;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Download arrow lands, then the upload arrow rises: looped sync motion. */
.cloud-sync .cloud-dl{animation:cloudDl 6s ease-in-out infinite}
.cloud-sync .cloud-ul{animation:cloudUl 6s ease-in-out infinite}
@keyframes cloudBob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
@keyframes cloudDl{
  0%,42%{opacity:1;transform:translateY(2px)}
  50%,92%{opacity:0;transform:translateY(-3px)}
  100%{opacity:1;transform:translateY(2px)}
}
@keyframes cloudUl{
  0%,42%{opacity:0;transform:translateY(3px)}
  50%,92%{opacity:1;transform:translateY(-2px)}
  100%{opacity:0;transform:translateY(3px)}
}
/* Cloud badge riding on the folder drifts gently. */
.cloud-folder .cf-cloud{animation:cfFloat 4s ease-in-out infinite}
@keyframes cfFloat{
  0%,100%{transform:translateY(0);opacity:.85}
  50%{transform:translateY(-1.6px);opacity:1}
}
/* Padlock snaps shut, holds, then releases: unlock to locked loop. */
.lock-cycle .lock-open{animation:lockOpen 5s ease-in-out infinite}
.lock-cycle .lock-shut{animation:lockShut 5s ease-in-out infinite}
.lock-cycle svg{animation:lockPop 5s ease-in-out infinite;transform-origin:50% 30%}
@keyframes lockOpen{
  0%,36%{opacity:1}
  46%,86%{opacity:0}
  96%,100%{opacity:1}
}
@keyframes lockShut{
  0%,36%{opacity:0}
  46%,86%{opacity:1}
  96%,100%{opacity:0}
}
@keyframes lockPop{
  0%,40%{transform:scale(1)}
  46%{transform:scale(1.12)}
  54%,88%{transform:scale(1)}
  94%{transform:scale(.94)}
  100%{transform:scale(1)}
}
.server-tag{
  min-height:38px;

  display:flex;
  align-items:center;

  gap:8px;

  padding:
    0 13px;

  border:
    1px solid
    #d3dce7;

  border-radius:10px;

  background:#f8fafc;

  color:#56667d;

  font-size:9px;

  font-weight:850;
}

.server-dot{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#35b47e;

  box-shadow:
    0 0 0 4px
    rgba(53,180,126,.11);
}


/* =========================================================
   LOGIN CONTENT
========================================================= */

.login-content{
  width:100%;

  max-width:550px;

  margin:auto 0;
}


/* =========================================================
   TOP LABEL — CLEANER VERSION
========================================================= */

.security-label{
  display:flex;
  align-items:center;

  gap:11px;

  width:max-content;

  margin-bottom:20px;

  color:#68768a;

  font-size:10px;

  font-weight:900;

  letter-spacing:1.3px;

  text-transform:uppercase;
}

.security-label::before{
  content:"";

  display:block;

  width:39px;
  height:2px;

  border-radius:10px;

  background:var(--blue);
}

.security-label svg{
  display:none;
}


/* =========================================================
   HEADLINE
========================================================= */

.login-content h1{
  margin:0;

  color:var(--ink);

  font-size:
    clamp(43px,4vw,60px);

  line-height:.98;

  font-weight:950;

  letter-spacing:-2.1px;
}

.login-content h1 span{
  display:block;

  margin-top:6px;

  color:var(--blue);
}

.login-intro{
  max-width:510px;

  margin:
    19px 0
    29px;

  color:#637187;

  font-size:14px;

  font-weight:520;

  line-height:1.72;
}


/* =========================================================
   FORM
========================================================= */

.login-form{
  display:grid;

  gap:18px;
}

.form-field{
  display:grid;

  gap:8px;
}

.form-field > label{
  color:#2c3b50;

  font-size:12px;

  font-weight:880;
}


/* =========================================================
   INPUT
========================================================= */

.input-control{
  min-height:59px;

  display:flex;
  align-items:center;

  position:relative;

  border:
    2px solid
    var(--line);

  border-radius:13px;

  background:#fff;

  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.input-control:hover{
  border-color:#a6b5c7;
}

.input-control:focus-within{
  border-color:var(--blue);

  box-shadow:
    0 0 0 4px
    rgba(23,104,215,.10);
}

.field-icon{
  width:55px;

  flex:none;

  display:grid;
  place-items:center;

  color:#65748a;
}
.field-icon svg{width:24px;height:24px;animation:fieldBob 5s ease-in-out infinite}
@keyframes fieldBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}

.input-control input{
  width:100%;
  min-width:0;

  height:55px;

  padding:
    0 50px
    0 0;

  border:0;
  outline:0;

  background:transparent;

  color:var(--ink);

  font-size:14px;

  font-weight:650;
}

.input-control input::placeholder{
  color:#a0aaba;
}


/* =========================================================
   PASSWORD BUTTON
========================================================= */

.password-eye{
  position:absolute;

  right:6px;
  top:6px;

  width:43px;
  height:43px;

  display:grid;
  place-items:center;

  border:0;

  border-radius:9px;

  background:#f3f6fa;

  color:#68778b;

  transition:
    background .14s ease,
    color .14s ease,
    transform .14s ease;
}

.password-eye:hover{
  background:var(--blue-soft);

  color:var(--blue);

  transform:scale(1.03);
}
.password-eye svg{width:22px;height:22px;animation:eyeBlink 6s ease-in-out infinite;transform-origin:50% 50%}
@keyframes eyeBlink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.08)}}


/* =========================================================
   FORM OPTIONS
========================================================= */

.form-options{
  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:20px;
}

.remember{
  display:flex;
  align-items:center;

  gap:8px;

  color:#526076;

  font-size:11px;

  font-weight:720;
}

.remember input{
  width:17px;
  height:17px;

  accent-color:var(--blue);
}

.forgot-link{
  border:0;

  background:transparent;

  color:var(--blue);

  padding:4px 0;

  font-size:11px;

  font-weight:880;
}

.forgot-link:hover{
  text-decoration:underline;
}


/* =========================================================
   ALERT
========================================================= */

.login-alert{
  display:flex;

  align-items:flex-start;

  gap:9px;

  padding:12px;

  border:
    1px solid
    #efb7be;

  border-left:
    4px solid
    var(--red);

  border-radius:10px;

  background:var(--red-soft);

  color:#a03b47;

  font-size:10px;

  font-weight:750;

  line-height:1.55;
}

.login-alert[hidden]{
  display:none;
}


/* =========================================================
   SIGN-IN BUTTON
========================================================= */

.login-button{
  width:100%;

  min-height:59px;

  position:relative;

  border:
    2px solid
    #105cc5;

  border-radius:13px;

  background:
    linear-gradient(
      135deg,
      #1b6fde,
      #145bc2
    );

  color:#fff;

  font-size:13px;

  font-weight:900;

  letter-spacing:.15px;

  box-shadow:
    0 14px 29px
    rgba(20,96,205,.23);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

/* Sunlight reflection sweeping across the button text only. */
.btn-shine{
  background:linear-gradient(110deg,#ffffff 42%,#ffe9a8 48%,#fff6d8 50%,#ffe9a8 52%,#ffffff 58%);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:#ffffff;
  -webkit-text-fill-color:transparent;
  animation:btnShine 3.4s linear infinite;
}
@keyframes btnShine{
  0%{background-position:110% 0}
  100%{background-position:-110% 0}
}
.login-button:hover{
  transform:translateY(-2px);

  box-shadow:
    0 18px 34px
    rgba(20,96,205,.29);
}

.login-button:active{
  transform:none;
}

.login-button.is-loading{
  pointer-events:none;

  color:transparent;
}

.login-button.is-loading::after{
  content:"";

  position:absolute;

  left:50%;
  top:50%;

  width:20px;
  height:20px;

  margin:
    -11px 0 0 -11px;

  border:
    2px solid
    rgba(255,255,255,.38);

  border-top-color:#fff;

  border-radius:50%;

  animation:
    spin
    .65s
    linear infinite;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}


/* =========================================================
   IMAGE FEATURE CARDS
========================================================= */

.login-features{
  margin-top:26px;

  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:10px;
}

.login-feature{
  min-width:0;

  overflow:hidden;

  border:0;
  border-radius:0;

  background:transparent;

  box-shadow:none;
}

.login-feature:hover{
  transform:none;

  border-color:transparent;

  box-shadow:none;
}

.feature-photo{
  width:100%;
  height:74px;

  display:block;

  object-fit:cover;
}

.feature-copy{
  padding:
    11px 12px
    12px;
}

.feature-copy strong{
  display:block;

  color:var(--ink);

  font-size:10px;

  font-weight:900;
}

.feature-copy span{
  display:block;

  margin-top:4px;

  color:#7e8999;

  font-size:8px;

  font-weight:650;

  line-height:1.4;
}


/* Individual image treatments */

.login-feature.mail .feature-photo{
  object-position:center 45%;
}

.login-feature.drive .feature-photo{
  object-position:center;
}

.login-feature.security .feature-photo{
  object-position:center 42%;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer{
  padding-top:19px;

  display:flex;
  justify-content:space-between;

  gap:16px;

  border-top:
    1px solid
    #e4e8ee;

  color:#8b95a5;

  font-size:8px;
}

.footer-links{
  display:flex;

  gap:13px;
}

.footer-links a{
  text-decoration:none;
}

.footer-links a:hover{
  color:var(--blue);
}


/* =========================================================
   RIGHT VISUAL
========================================================= */

.visual-panel{
  min-height:100vh;

  position:relative;

  overflow:hidden;

  background:
    #0a2b59;
}


/* REAL CDN BACKGROUND */

.visual-image{
  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  object-fit:cover;

  object-position:center;

  transform:scale(1.015);
}


/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.visual-shade{
  position:absolute;

  inset:0;

  background:
    linear-gradient(
      90deg,
      rgba(5,23,49,.63) 0%,
      rgba(5,27,57,.30) 48%,
      rgba(5,24,51,.45) 100%
    );
}

.visual-shade::after{
  content:"";

  position:absolute;

  inset:auto 0 0;

  height:45%;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(4,20,44,.58)
    );
}


/* =========================================================
   VISUAL TOP
========================================================= */

.visual-top{
  position:absolute;

  top:42px;
  left:7%;
  right:7%;

  z-index:5;

  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:20px;
}

.image-brandline{
  color:#fff;

  font-size:13px;

  font-weight:950;

  letter-spacing:2.7px;

  text-shadow:
    0 2px 12px
    rgba(0,0,0,.28);
}

.service-status{
  display:flex;
  align-items:center;

  gap:8px;

  color:#fff;

  font-size:9px;

  font-weight:800;

  text-shadow:
    0 2px 10px
    rgba(0,0,0,.28);
}

.service-status span{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#58dc9f;

  box-shadow:
    0 0 0 4px
    rgba(88,220,159,.16);
}


/* =========================================================
   VISUAL HEADLINE
========================================================= */

.visual-headline{
  position:absolute;

  left:7%;
  top:20%;

  z-index:5;

  width:
    min(690px,85%);
}

.visual-kicker{
  margin-bottom:16px;

  color:#dae6f4;

  font-size:9px;

  font-weight:900;

  letter-spacing:1.7px;

  text-transform:uppercase;
}

.visual-headline h2{
  max-width:680px;

  margin:0;

  color:#fff;

  font-size:
    clamp(44px,4.7vw,68px);

  line-height:.98;

  font-weight:950;

  letter-spacing:-2.5px;

  text-shadow:
    0 4px 18px
    rgba(0,0,0,.35);
}

.visual-headline p{
  max-width:560px;

  margin:
    21px 0
    0;

  color:#e1eaf5;

  font-size:13px;

  font-weight:550;

  line-height:1.8;

  text-shadow:
    0 2px 11px
    rgba(0,0,0,.31);
}


/* =========================================================
   INDIVIDUAL RIGHT-SIDE FEATURE CARDS
========================================================= */

.visual-features{
  position:absolute;

  left:7%;
  right:7%;
  bottom:6%;

  z-index:6;

  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:12px;
}

.visual-feature{
  overflow:hidden;

  min-height:0;

  position:relative;

  border:0;

  border-radius:0;

  background:transparent;

  box-shadow:none;

  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 4px;
}

.visual-feature:hover{
  transform:none;

  border-color:transparent;

  box-shadow:none;
}

.visual-feature-image{
  width:100%;
  height:96px;

  display:block;

  object-fit:cover;
}

.visual-feature-content{
  padding:
    13px 14px
    15px;
}

.visual-feature strong{
  display:block;

  color:#ffffff;

  font-size:13px;

  font-weight:800;

  letter-spacing:-.2px;
}

.visual-feature p{
  margin:
    5px 0
    0;

  color:rgba(255,255,255,.85);

  font-size:11px;

  font-weight:500;

  line-height:1.65;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1260px){

  .login-shell{
    grid-template-columns:
      minmax(520px,48%)
      minmax(520px,52%);
  }

  .visual-features{
    grid-template-columns:
      repeat(2,1fr);
  }

  .visual-feature:last-child{
    display:none;
  }
}


@media(max-width:1020px){

  .login-shell{
    display:block;
  }

  .visual-panel{
    display:none;
  }

  .login-panel{
    min-height:100vh;

    padding:
      30px
      clamp(28px,8vw,92px);
  }

  .login-content{
    margin:auto;
  }

  .brand-bar{
    margin-bottom:55px;
  }
}


@media(max-width:620px){

  .login-panel{
    padding:
      22px
      18px
      25px;
  }

  .server-tag{
    display:none;
  }

  .brand-logo-box{
    width:50px;
    height:50px;
  }

  .brand-logo-box img{
    width:34px;
    height:34px;
  }

  .brand-copy strong{
    font-size:18px;
  }

  .login-content h1{
    font-size:39px;
  }

  .login-intro{
    font-size:13px;
  }

  .login-features{
    grid-template-columns:1fr;
  }

  .login-feature{
    display:grid;

    grid-template-columns:
      120px 1fr;

    align-items:stretch;
  }

  .feature-photo{
    height:100%;
    min-height:85px;
  }

  .feature-copy{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .login-footer{
    flex-direction:column;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible{
  outline:
    3px solid
    rgba(23,104,215,.26);

  outline-offset:2px;
}

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    animation:none!important;
    transition:none!important;
  }
}


/* Pure Mail auth additions: signup + recovery share the logim system. */
.auth-switch{margin-top:18px;text-align:center;font-size:12px;color:#637187}
.auth-switch button{border:0;background:none;color:var(--blue);font-weight:800;cursor:pointer;padding:0}
.auth-switch button:hover{text-decoration:underline}
.login-alert{display:flex;margin:0 0 4px;padding:12px 14px;border-radius:11px;font-size:12px;font-weight:700;background:#fff1f2;border:1px solid #f3c2c7;color:#a63d48}
.login-alert[hidden]{display:none!important}
.login-alert.show{display:flex}
.login-alert.info{background:#edf4ff;border-color:#c4d9f7;color:#0d4fae}
.login-button{position:relative;width:100%;min-height:58px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:#fff;font-size:15px;font-weight:850;box-shadow:0 14px 28px rgba(23,104,215,.22);cursor:pointer}
.login-button:disabled{cursor:not-allowed}
.login-button.is-loading{color:transparent !important;pointer-events:none}
.login-button.is-loading::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid #fff;border-right-color:transparent;border-radius:50%;animation:logimSpin .7s linear infinite}
@keyframes logimSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.login-shell{grid-template-columns:1fr}.visual-panel{display:none}}


/* Live workspace health states */
[data-service-status]{transition:border-color .18s ease,background .18s ease,color .18s ease,opacity .18s ease}
[data-service-status].is-checking{opacity:.78}
.server-tag.is-operational{border-color:#cfe8dc;background:#f4fbf7;color:#356a54}
.server-tag.is-operational .server-dot{background:#35b47e;box-shadow:0 0 0 4px rgba(53,180,126,.11)}
.server-tag.is-degraded{border-color:#ead9ae;background:#fff9ea;color:#8a621b}
.server-tag.is-degraded .server-dot{background:#d8a128;box-shadow:0 0 0 4px rgba(216,161,40,.12)}
.server-tag.is-unavailable{border-color:#efcbd1;background:#fff5f6;color:#a23d4c}
.server-tag.is-unavailable .server-dot{background:#db4b58;box-shadow:0 0 0 4px rgba(219,75,88,.11)}
.service-status.is-degraded span:first-child{background:#e3b341;box-shadow:0 0 0 4px rgba(227,179,65,.16)}
.service-status.is-unavailable span:first-child{background:#ef6472;box-shadow:0 0 0 4px rgba(239,100,114,.16)}
.service-status [data-service-status-text]{white-space:nowrap}


/* =========================================================
   Login left-side workspace backdrop
   A separate collaboration image gives the sign-in form visual context
   without competing with the primary right-side hero.
========================================================= */
#loginScreen .login-panel{
  overflow:hidden;
  isolation:isolate;
  background:#fff;
}
#loginScreen .login-panel::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url("../assets/img/login-bg.webp");
  background-size:cover;
  background-position:58% center;
  opacity:.19;
  transform:scale(1.025);
}
#loginScreen .login-panel::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 92% 52%,rgba(23,104,215,.11),transparent 34%),
    linear-gradient(90deg,rgba(255,255,255,.995) 0%,rgba(255,255,255,.975) 48%,rgba(255,255,255,.90) 72%,rgba(248,252,255,.78) 100%);
  pointer-events:none;
}
#loginScreen .login-panel>.brand-bar,
#loginScreen .login-panel>.login-content,
#loginScreen .login-panel>.login-footer{
  position:relative;
  z-index:2;
}
@media(max-width:900px){
  #loginScreen .login-panel::before{background-position:center;opacity:.12}
  #loginScreen .login-panel::after{background:rgba(255,255,255,.94)}
}

/* Feature icons: transparent line icons, no photography. */
.login-features{display:grid;gap:10px}
.login-feature{display:flex;gap:10px;align-items:flex-start}
.feature-ic{display:grid;place-items:center;flex:none;background:transparent;padding:2px}
.feature-ic svg{width:60px;height:60px;stroke:var(--blue);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.login-feature.security .feature-ic svg{stroke:#1f9a69}
/* Live landing icons: mail rides, folder breathes, shield draws its tick. */
.mail-live svg{animation:mailRide 5s ease-in-out infinite}
.mail-live svg.mail-flight{width:96px;height:60px;animation:none}
.mail-flight .mf-flap-o,.mail-flight .mf-letter,.mail-flight .mf-plane,.mail-flight .mf-trail{opacity:0}
.mail-flight .mf-plane,.mail-flight .mf-letter{transform-box:fill-box;transform-origin:center}
.mail-flight .mf-env{animation:mfEnv 8s ease-in-out infinite}
.mail-flight .mf-flap-c{animation:mfFlapC 8s ease-in-out infinite}
.mail-flight .mf-flap-o{animation:mfFlapO 8s ease-in-out infinite}
.mail-flight .mf-letter{animation:mfLetter 8s ease-in-out infinite}
.mail-flight .mf-plane{animation:mfPlane 8s ease-in-out infinite}
.mail-flight .mf-trail{stroke-dasharray:4 4;animation:mfTrail 8s linear infinite}
@keyframes mfEnv{0%,32%{opacity:1}40%,74%{opacity:0}82%,100%{opacity:1}}
@keyframes mfFlapC{0%,12%{opacity:1}18%,74%{opacity:0}82%,100%{opacity:1}}
@keyframes mfFlapO{0%,12%{opacity:0}18%,30%{opacity:1}36%,100%{opacity:0}}
@keyframes mfLetter{0%,12%{opacity:0;transform:translateY(9px)}20%,28%{opacity:1;transform:translateY(0)}34%,100%{opacity:0;transform:translateY(-5px)}}
@keyframes mfPlane{0%,30%{opacity:0;transform:translate(0,0) scale(.6) rotate(0deg)}36%{opacity:1;transform:translate(0,0) scale(1) rotate(0deg)}48%{transform:translate(8px,-3px) scale(1) rotate(-4deg)}60%{opacity:1;transform:translate(15px,-1px) scale(1) rotate(2deg)}68%,100%{opacity:0;transform:translate(18px,0) scale(.9)}}
@keyframes mfTrail{0%,34%{opacity:0;stroke-dashoffset:0}42%,60%{opacity:.8}68%,100%{opacity:0;stroke-dashoffset:-32}}
@keyframes mailRide{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.folder-live svg{animation:cfFloat 4s ease-in-out infinite}
.folder-live svg.fd-scene{width:96px;height:60px;animation:none}
.fd-scene .fd-file1,.fd-scene .fd-file2,.fd-scene .fd-cloud{opacity:0}
.fd-scene .fd-folder{transform-box:fill-box;transform-origin:center;animation:fdFolder 8s ease-in-out infinite}
.fd-scene .fd-file1{animation:fdDrop1 8s ease-in-out infinite}
.fd-scene .fd-file2{animation:fdDrop2 8s ease-in-out infinite}
.fd-scene .fd-cloud{animation:fdCloud 8s ease-in-out infinite}
@keyframes fdDrop1{0%,12%{opacity:0;transform:translateY(-16px)}22%,32%{opacity:1;transform:translateY(8px)}42%,100%{opacity:0;transform:translateY(10px)}}
@keyframes fdDrop2{0%,22%{opacity:0;transform:translateY(-16px)}32%,42%{opacity:1;transform:translateY(8px)}52%,100%{opacity:0;transform:translateY(10px)}}
@keyframes fdFolder{0%,38%{transform:scale(1)}46%,54%{transform:scale(1.07)}62%,100%{transform:scale(1)}}
@keyframes fdCloud{0%,52%{opacity:0;transform:translate(0,10px)}62%{opacity:1}78%{opacity:1;transform:translate(7px,-9px)}88%,100%{opacity:0;transform:translate(10px,-12px)}}
.shield-live svg{animation:shieldPulse 4s ease-in-out infinite;transform-origin:50% 40%}
.shield-live .shield-tick{stroke-dasharray:10;stroke-dashoffset:10;animation:shieldDraw 4s ease-in-out infinite}
@keyframes shieldPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes shieldDraw{0%{stroke-dashoffset:10;opacity:0}25%{opacity:1}55%,75%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.feature-copy{padding:0}
.visual-feature .feature-ic{padding:2px;justify-items:start}
.visual-feature .feature-ic svg{width:60px;height:60px}

/* Alias picker + Turnstile slot. */
.alias-control input{flex:1;min-width:0}
.alias-domain{flex:none;font-size:13px;font-weight:700;color:var(--blue);padding-right:12px;white-space:nowrap}
.alias-check{display:flex;align-items:center;gap:10px;margin-top:8px}
#suAvail{font-size:12px;font-weight:600}
#suAvail[data-state="ok"]{color:#0a7d4f}
#suAvail[data-state="taken"]{color:#d93025}
#suAvail[data-state="checking"]{color:#5b6b82}
.cf-turnstile{margin:6px 0;min-height:0}

/* =========================================================
   PASSWORD VISIBILITY TOGGLE (generic, all screens)
   ========================================================= */
.pw-wrap{position:relative;display:flex;flex-direction:column;gap:6px;width:100%}
.pw-wrap input{width:100%;padding-right:48px}
.pw-eye{position:absolute;right:8px;top:8px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:#f3f6fa;color:#68778b;transition:background .14s ease,color .14s ease,transform .14s ease}
.pw-eye:hover{background:var(--blue-soft);color:var(--blue);transform:scale(1.03)}
.pw-eye svg{width:20px;height:20px}

/* =========================================================
   PASSWORD STRENGTH METER
   ========================================================= */
.pw-meter{margin-top:6px}
.pw-bars{display:flex;gap:4px;height:6px}
.pw-bars i{flex:1;height:6px;border-radius:3px;background:var(--line-light);transition:background .15s ease}
.pw-bars i.on.s1{background:var(--red)}
.pw-bars i.on.s2{background:var(--gold)}
.pw-bars i.on.s3{background:#6ab04c}
.pw-bars i.on.s4{background:var(--green)}
.pw-hint{margin-top:4px;font-size:11px;color:var(--muted);transition:color .15s ease}
.pw-hint[data-state="bad"]{color:var(--red);font-weight:600}
.pw-hint[data-state="ok"]{color:var(--green);font-weight:600}

/* Turnstile availability fallback */
.turnstile-status{margin:6px 0 0;font-size:11px;line-height:1.55;color:#7a5300;background:#fff8e6;border:1px solid #f0d58a;border-radius:8px;padding:8px 10px}
.turnstile-status[hidden]{display:none}
.turnstile-status .textlink{border:0;background:none;padding:0;color:#1565d8;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}

/* =========================================================
   Pure Mail — first-arrival splash.
   White so it sits on the same surface as the login page, and the mark
   lands on the login brand logo instead of vanishing, so the splash and
   the login screen blend into one another. Once per browser session.
========================================================= */
#pmSplash { display: none; }
.pm-splash #pmSplash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: pm-splash-out 280ms ease 2600ms forwards; /* safety net if JS fails */
}
#pmSplash .pm-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: pm-splash-pop 380ms cubic-bezier(.2, .9, .2, 1) both;
}
#pmSplash .pm-splash-logo {
  display: block;
  width: 104px;
  height: 104px;
  transform-origin: center center;
  will-change: transform;
}
#pmSplash .pm-word {
  display: flex;
  align-items: baseline;
  color: #0a326c;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1.2px;
  line-height: 1;
}
#pmSplash .pm-grp { display: inline-flex; align-items: baseline; }
#pmSplash .pm-p,
#pmSplash .pm-m {
  display: inline-block;
  animation: pm-letter 380ms cubic-bezier(.2, .9, .2, 1) 160ms both;
}
#pmSplash .pm-m { animation-delay: 200ms; }
#pmSplash .pm-ure,
#pmSplash .pm-ail {
  display: inline-block;
  font-style: normal;
  animation: pm-suffix 280ms ease 400ms both;
}
#pmSplash .pm-ail { animation-delay: 440ms; }
#pmSplash .pm-gap { width: 12px; }

@keyframes pm-splash-pop {
  0%   { opacity: 0; transform: scale(.86); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes pm-letter {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pm-suffix {
  0%   { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes pm-splash-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  #pmSplash .pm-splash-inner,
  #pmSplash .pm-p,
  #pmSplash .pm-m,
  #pmSplash .pm-ure,
  #pmSplash .pm-ail { animation: none; opacity: 1; transform: none; filter: none; }
  .pm-splash #pmSplash { animation: pm-splash-out 200ms ease 300ms forwards; }
}
