body.dialog-open { overflow: hidden; }

.header-login {
  display: inline-flex;
  align-items: center;
  padding: .55rem .95rem;
  color: white;
  background: #183d70;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 4px 0 #0f284b;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.header-login:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #0f284b; }

.auth-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 35px 90px rgba(26, 20, 16, .4);
  font-family: "Manrope", sans-serif;
  color: #171817;
}

.auth-dialog::backdrop {
  background: rgba(25, 25, 24, .72);
  backdrop-filter: blur(7px);
}

.auth-shell {
  min-height: 570px;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.auth-visual {
  position: relative;
  padding: 43px 32px;
  overflow: hidden;
  color: white;
  background: #102848;
}

.auth-visual::before,
.auth-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
}

.auth-visual::before { width: 250px; height: 250px; right: -150px; top: -70px; }
.auth-visual::after { width: 190px; height: 190px; left: -115px; bottom: -65px; border-width: 28px; }

.auth-brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #9d341f;
  border-radius: 16px;
  background: #d84c31;
  box-shadow: 0 6px 0 #a83c26;
  font-family: "Young Serif", serif;
  font-size: 29px;
  transform: rotate(-4deg);
}

.auth-visual > p {
  margin: 48px 0 0;
  font-family: "Young Serif", serif;
  font-size: 31px;
  line-height: 1.1;
}

.auth-code-card {
  position: absolute;
  right: 25px;
  bottom: 70px;
  left: 25px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 8px 0 rgba(5, 17, 35, .22);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.auth-code-card span { color: #f3c46c; }
.auth-code-card i { display: block; height: 4px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.auth-code-card i:nth-child(2) { width: 78%; }
.auth-code-card i:nth-child(3) { width: 55%; }
.auth-code-card i:nth-child(4) { width: 68%; }

.auth-content { position: relative; padding: 45px 50px 38px; }
.auth-content h2 {
  margin: 0;
  font-family: "Young Serif", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -1px;
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
  color: #d84c31;
  font: 500 .72rem "DM Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-eyebrow > span { width: 28px; height: 2px; background: currentColor; }

.auth-subtitle {
  margin: 10px 0 24px;
  color: #65665f;
  font-size: .9rem;
  line-height: 1.65;
}

.auth-tabs {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #d9cfc1;
  border-radius: 11px;
  background: #f6f1e9;
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #65665f;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  color: white;
  background: #171817;
  box-shadow: 0 3px 0 #090807;
}

.auth-form { margin-top: 20px; display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 7px; }
.auth-form label > span { font-size: .72rem; font-weight: 800; }
.auth-form input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #d9cfc1;
  border-radius: 9px;
  outline: 0;
  background: #faf7f1;
  font: inherit;
  font-size: .9rem;
}

.auth-form input:focus {
  border-color: rgba(36, 88, 166, .55);
  box-shadow: 0 0 0 4px rgba(36, 88, 166, .08);
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  color: #9f3825;
  border-left: 3px solid #d84c31;
  border-radius: 0 7px 7px 0;
  background: rgba(230, 94, 57, .08);
  font-size: .78rem;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 0;
  border-radius: 11px;
  color: white;
  background: #183d70;
  box-shadow: 0 6px 0 #0f284b, 0 14px 24px rgba(15, 40, 75, .2);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:disabled { opacity: .65; cursor: wait; }

.auth-switch {
  margin: 21px 0 0;
  text-align: center;
  color: #65665f;
  font-size: .8rem;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e4f91;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-privacy {
  margin: 18px 0 0;
  padding-top: 15px;
  color: #999187;
  border-top: 1px solid #d9cfc1;
  font-size: .72rem;
  line-height: 1.55;
  text-align: center;
}

.auth-privacy a { color: #1e4f91; font-weight: 800; }

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d9cfc1;
  border-radius: 10px;
  background: #fffdf9;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .auth-dialog { overflow-y: auto; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; }
  .auth-visual { min-height: 120px; padding: 25px; }
  .auth-brand-mark { width: 43px; height: 43px; font-size: 23px; }
  .auth-visual > p { position: absolute; top: 27px; left: 87px; margin: 0; font-size: 23px; }
  .auth-code-card { display: none; }
  .auth-content { padding: 34px 24px 30px; }
  .auth-content h2 { padding-right: 30px; font-size: 35px; }
}
