/* 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
========================================================= */

.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;
}

.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);
}


/* =========================================================
   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;
}

.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:
    2px solid
    #d4dce6;

  border-radius:13px;

  background:#fff;

  box-shadow:
    0 8px 20px
    rgba(17,37,65,.06);

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

.login-feature:hover{
  transform:translateY(-3px);

  border-color:#bad0ea;

  box-shadow:
    0 16px 28px
    rgba(17,37,65,.11);
}

.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:190px;

  position:relative;

  border:
    2px solid
    #d9e1e9;

  border-radius:15px;

  background:#fff;

  box-shadow:
    0 18px 42px
    rgba(6,22,45,.24);

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

.visual-feature:hover{
  transform:
    translateY(-5px);

  border-color:
    #bdd0e7;

  box-shadow:
    0 27px 50px
    rgba(6,22,45,.31);
}

.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:var(--ink);

  font-size:11px;

  font-weight:950;
}

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

  color:#7c899a;

  font-size:8px;

  line-height:1.55;
}


/* =========================================================
   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:none;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.show{display:block}
.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}}
