/* Sign-in page. Self-contained: this page does not load the admin template's
   stylesheets, so nothing here depends on or affects the rest of the CRM. */

:root{
  --l-ground:#eef4f8;
  --l-surface:#ffffff;
  --l-line:#dce7ee;
  --l-line-strong:#c3d6e1;
  --l-ink:#152730;
  --l-ink-2:#456170;
  --l-ink-3:#7796a6;
  --l-brand:#345f72;
  --l-brand-dark:#244553;
  --l-brand-soft:#e3edf3;
  --l-error:#d8433c;
  --l-error-soft:#fdeceb;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;color:var(--l-ink);
  background:var(--l-ground);
  /* a soft wash of the brand colour, so the page is not a flat grey box */
  background-image:radial-gradient(900px 480px at 50% -12%, var(--l-brand-soft) 0%, transparent 70%);
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
  display:flex;align-items:center;justify-content:center;padding:24px;
}

.auth{width:100%;max-width:370px;}

.auth-head{text-align:center;margin-bottom:22px;}
.auth-head img{height:56px;width:auto;display:inline-block;}
.auth-head .name{
  font-family:Quicksand,sans-serif;font-weight:700;font-size:19px;color:var(--l-ink);
  letter-spacing:.01em;margin-top:10px;
}
.auth-head .name span{color:var(--l-brand);}

.card{
  background:var(--l-surface);border:1px solid var(--l-line);border-radius:14px;
  padding:28px 26px 24px;
  box-shadow:0 1px 2px rgba(21,39,48,.05), 0 10px 30px rgba(21,39,48,.07);
}

.field{margin-bottom:15px;}
.field label{
  display:block;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;
  color:var(--l-ink-3);margin-bottom:6px;
}
.field input{
  width:100%;font-family:inherit;font-size:15px;color:var(--l-ink);
  background:var(--l-surface);border:1px solid var(--l-line-strong);border-radius:9px;
  padding:11px 13px;transition:border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder{color:var(--l-ink-3);}
.field input:focus{
  outline:none;border-color:var(--l-brand);box-shadow:0 0 0 3px var(--l-brand-soft);
}
.field input.is-invalid{border-color:var(--l-error);}

.alert{
  background:var(--l-error-soft);border:1px solid var(--l-error);border-radius:9px;
  padding:10px 13px;margin-bottom:18px;font-size:13.5px;color:var(--l-error);
}

.submit{
  width:100%;font-family:inherit;font-size:15px;font-weight:600;color:#fff;
  background:var(--l-brand);border:1px solid var(--l-brand);border-radius:9px;
  padding:12px 16px;cursor:pointer;margin-top:6px;
}
.submit:hover{background:var(--l-brand-dark);border-color:var(--l-brand-dark);}
.submit:focus-visible{outline:2px solid var(--l-brand);outline-offset:2px;}

@media (max-width:420px){
  .card{padding:24px 20px 20px;}
  .auth-head img{height:48px;}
}
