:root{
  color-scheme:light;
  font-family:Switzer,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#1b1c20;
  background:#f7f7f9;
  font-synthesis:none;
}

*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{min-height:100svh;background:#f7f7f9;font-size:15px;line-height:1.5}
button,input{font:inherit}

.brand{
  height:65px;
  display:grid;
  place-items:center;
  background:#fff;
  border-bottom:1px solid #eeeeef;
}

.monogram{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7dbd7;
  color:#0c3a68;
  background:#fbfaf5;
  text-decoration:none;
  font-family:Georgia,serif;
  font-size:15px;
  line-height:1;
  letter-spacing:-.18em;
}
.monogram span{font-weight:700}
.monogram em{font-style:normal;color:#5d112a;font-weight:400}

.portal-main{
  min-height:calc(100svh - 65px);
  padding:48px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f7f9;
}

.portal-card{
  width:440px;
  max-width:100%;
  min-height:283px;
  padding:32px;
  border:1px solid #e4e4e4;
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 2px rgba(27,28,32,.05),0 0 0 1px rgba(27,28,32,.01);
}

h1{
  margin:0;
  color:#1b1c20;
  font-size:19px;
  font-weight:600;
  line-height:23.75px;
  letter-spacing:-.01em;
}

.muted{
  margin:8px 0 0;
  color:#5f6063;
  font-size:15px;
  font-weight:400;
  line-height:22.5px;
}

.portal-form{display:grid;gap:0;margin-top:25px}
.portal-form label{margin:0 0 7px;font-size:14px;line-height:21px;font-weight:600;color:#1b1c20}
.portal-form input{
  width:100%;
  height:44px;
  margin:0;
  padding:0 12px;
  border:1px solid #d1d2d2;
  border-radius:10px;
  outline:0;
  background:#fff;
  color:#1b1c20;
  font-size:16px;
  line-height:24px;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.portal-form input::placeholder{color:#77787b;opacity:1}
.portal-form input:focus{border-color:#6b28f6;box-shadow:0 0 0 3px rgba(107,40,246,.14)}
.portal-form input[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.1)}

.primary,.secondary{
  width:100%;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  line-height:15px;
  transition:background .15s ease,box-shadow .15s ease;
}
.primary{margin-top:24px;border:1px solid transparent;background:#6b28f6;color:#fff}
.primary:hover{background:#5c20dd}
.primary:focus-visible,.secondary:focus-visible{outline:3px solid rgba(107,40,246,.23);outline-offset:2px}
.secondary{margin-top:10px;border:1px solid #d1d2d2;background:#fff;color:#37383b}
.secondary:hover{background:#f7f7f9}

.field-error{margin:6px 0 -8px;color:#b42318;font-size:12px;line-height:18px}
.code-hint{margin:7px 0 -8px;color:#77787b;font-size:12px;line-height:18px}
.code-form input{letter-spacing:.28em;text-align:center;font-variant-numeric:tabular-nums}
[hidden]{display:none!important}

@media(max-width:480px){
  .portal-main{min-height:calc(100svh - 65px);padding:24px 16px}
  .portal-card{width:100%;min-height:0;padding:24px}
}
