.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  background: #09090b;
}

.auth-identity {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(32px, 5vw, 64px);
  color: #fff;
}

.auth-identity--branded {
  background-color: #390709;
  background-image:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(135deg, #861c20 0%, #590d11 48%, #300608 100%);
  background-size: 56px 56px, 56px 56px, cover;
  background-position: center;
}

.auth-identity__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.auth-identity__brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
}

.auth-identity__main {
  width: min(100%, 540px);
  margin: auto 0;
  padding: 48px 0;
}

.auth-identity__main h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.auth-identity__main > p {
  max-width: 530px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.6;
}

.auth-identity__features {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 500;
}

.auth-feature__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
}

.auth-feature__icon svg { width: 18px; height: 18px; }

.auth-identity__context {
  max-width: 540px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .72) !important;
  font-size: 12px;
  line-height: 1.6;
}

.auth-form-panel {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(24px, 4vw, 56px);
  background: #09090b;
}

.auth-form-stack {
  width: 100%;
  max-width: 426px;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-heading h2 {
  font-size: 36px;
  letter-spacing: -.04em;
}

.auth-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.auth-card {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px;
  background: #121214;
  border-color: #242428;
  border-radius: 16px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .24);
}

.auth-card > div:first-child h2 { font-size: 24px; }
.auth-card > div:first-child p { margin-top: 2px; }
.auth-card form, .auth-card .stack { min-width: 0; }
.auth-card .stack { display: flex; flex-direction: column; }
.auth-card form .stack { gap: 16px; }
.auth-card .field { gap: 6px; }
.auth-card .field__label { font-size: 13px; font-weight: 500; }
.auth-card .field__help { line-height: 1.35; }
.auth-card .input, .auth-card .select { height: 42px; border-radius: 11px; background-color: #19191c; font-size: 14px; }
.auth-card .input::placeholder { color: #777681; opacity: 1; }
.auth-card .btn--primary { width: 100%; height: 48px; border-radius: 11px; }

.auth-card__footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-card__footer a,
.auth-verify a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-card__footer a:hover,
.auth-verify a:hover { text-decoration: underline; }

.auth-login-card { gap: 18px; }
.auth-login-card form .stack { gap: 18px; }
.auth-login-card .field__label-row { display: flex; align-items: center; justify-content: space-between; }
.auth-login-card .field__label-row a { color: var(--muted); font-size: 12px; text-decoration: none; }
.auth-login-card .field__label-row a:hover { color: var(--ink); }

.password-field { position: relative; display: flex; width: 100%; }
.password-field .input { padding-right: 44px; }
.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap .password-field { width: 100%; }
.auth-input-wrap > svg { position: absolute; left: 12px; z-index: 1; width: 17px; height: 17px; color: #85838c; pointer-events: none; }
.auth-input-wrap .input { padding-left: 40px; }
.auth-input-wrap .password-field .input { padding-right: 44px; }
.auth-input-wrap .password-field__toggle { right: 4px; }
.auth-verification-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.auth-verification-link:hover { color: var(--ink); }
.auth-verification-link svg { width: 16px; height: 16px; }

.auth-register { max-width: 360px; }
.auth-register .auth-heading { margin-bottom: 16px; }
.auth-register .auth-heading h2 { font-size: 28px; }
.auth-register .auth-card { gap: 12px; padding: 20px 22px; }
.auth-register .auth-card form .stack { gap: 10px; }
.auth-register .auth-card .field { gap: 4px; }
.auth-register .auth-card .field__label { font-size: 12px; }
.auth-register .auth-card .input,
.auth-register .auth-card .select { height: 36px; padding-left: 10px; font-size: 13px; }
.auth-register .auth-input-wrap .input { padding-left: 38px; }
.auth-register .auth-card .btn--primary { height: 40px; }
.auth-register .auth-card__footer { margin-top: 16px; }
.auth-register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-register-grid--full { grid-column: 1 / -1; }
.auth-radio-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-radio-option {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #28282c;
  border-radius: 11px;
  background: #19191c;
  cursor: pointer;
}
.auth-radio-option:has(input:checked) { border-color: var(--brand); background: rgba(239, 68, 68, .09); }
.auth-radio-option input { width: 14px; height: 14px; flex: 0 0 14px; }
.auth-radio-option span { display: flex; flex-direction: column; line-height: 1.25; }
.auth-radio-option strong { font-size: 11px; font-weight: 600; }
.auth-radio-option small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.auth-radio-option > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.auth-register .auth-card .field__help { font-size: 10px; }
.auth-register .password-field .input { padding-right: 36px; }
.auth-register .password-field__toggle { width: 30px; height: 30px; right: 2px; }

.auth-reset { max-width: 360px; }
.auth-reset .auth-card { padding: 24px; }
.auth-reset .auth-card .stack { gap: 14px; }
.auth-reset .auth-reset-email-field .input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2385838c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
.auth-verify { max-width: 360px; }
.auth-verify .auth-card { gap: 12px; padding: 24px; }
.auth-verify .auth-card::before { content: 'VERIFY EMAIL'; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.auth-verify .auth-card h2 { font-size: 24px; }
.auth-verify .auth-card > p { line-height: 1.4; }
.auth-verify .auth-card form.stack { gap: 12px; }
.auth-verify #verification-card .auth-email-input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2385838c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
.auth-verify #verification-card .verification-code-field .field__label,
.auth-verify #verification-card .verification-code-field .field__help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.auth-verify #verification-card .text-mono {
  height: 46px;
  padding-left: 1.15em;
  text-align: center;
  letter-spacing: 1.15em;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), #2b2b30 calc(100% - 1px));
  background-size: 16.6667% 100%;
  background-repeat: repeat-x;
}
.auth-verify #verification-card > .stack > form:nth-of-type(2) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 2px;
}
.auth-verify #verification-card > .stack > form:nth-of-type(2)::before {
  content: "Didn't receive the code?";
  color: var(--muted);
  font-size: 12px;
}
.auth-verify #verification-card > .stack > form:nth-of-type(2) .btn {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.auth-verify .auth-card > .stack { gap: 12px; }
.auth-verify .auth-card__footer { margin-top: 16px; }

.auth-banner {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
}
.auth-banner--error { color: #ff8b8f; background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .24); }
.auth-banner--success { color: #55d6a6; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .24); }

/* Login sizing tuned to the supplied reference (1167x723). */
.auth-layout--login .auth-identity {
  padding: 48px 40px;
  border-right: 3px solid #5b1417;
}
.auth-layout--login .auth-identity--branded {
  background-position: 0 0, 0 0, center;
}
.auth-layout--login .auth-identity__brand { gap: 12px; }
.auth-layout--login .auth-identity__context { max-width: 512px; }
.auth-layout--login .auth-form-panel { padding: 48px 32px; }
.auth-layout--login .auth-login { transform: translateY(20px); }
.auth-layout--login .auth-login .auth-heading { margin-bottom: 22px; }
.auth-layout--login .auth-login .auth-card { padding: 32px; }
.auth-layout--login .auth-login .auth-card .field { gap: 8px; }
.auth-layout--login .auth-login .auth-card .input { height: 48px; border-radius: 13px; }
.auth-layout--login .auth-login .auth-card .btn--primary { height: 49px; }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 56%) minmax(0, 44%); }
  .auth-identity { padding: 36px; }
  .auth-form-panel { padding: 32px 24px; }
}

@media (max-width: 700px) {
  .auth-layout { grid-template-columns: minmax(0, 54%) minmax(0, 46%); }
  .auth-identity { padding: 24px 18px; }
  .auth-identity__brand { gap: 8px; font-size: 8px; letter-spacing: .1em; }
  .auth-identity__brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .auth-identity__main { padding: 32px 0; }
  .auth-identity__main h1 { font-size: 34px; }
  .auth-identity__main > p { font-size: 12px; line-height: 1.5; }
  .auth-identity__features { gap: 8px; margin-top: 20px; }
  .auth-feature { gap: 8px; font-size: 11px; }
  .auth-feature__icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .auth-identity__context { padding-top: 14px; font-size: 10px; }
  .auth-form-panel { padding: 24px 14px; }
  .auth-heading h2 { font-size: 30px; }
  .auth-heading p { font-size: 12px; }
  .auth-card { padding: 20px 16px; }
  .auth-register .auth-card { padding: 14px 12px; }
  .auth-register-grid { grid-template-columns: 1fr; }
  .auth-register-grid--full { grid-column: auto; }
  .auth-register .auth-card form .stack { gap: 8px; }
}

@media (max-width: 540px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-identity { min-height: auto; padding: 20px 24px; }
  .auth-identity__main { margin: 28px 0 18px; padding: 0; }
  .auth-identity__main h1 { font-size: 36px; }
  .auth-identity__main > p { font-size: 13px; }
  .auth-identity__features { grid-template-columns: 1fr; }
  .auth-identity__context { padding-top: 12px; }
  .auth-form-panel { min-height: auto; padding: 30px 20px 40px; }
  .auth-form-stack { max-width: 460px; }
}

@media (max-width: 380px) {
  .auth-register-grid { grid-template-columns: 1fr; }
  .auth-register-grid--full { grid-column: auto; }
  .auth-register .auth-card { padding: 18px; }
}
@media (max-width: 900px) {
  .auth-layout--login .auth-identity { padding: 36px 28px; }
  .auth-layout--login .auth-form-panel { padding: 32px 22px; }
  .auth-layout--login .auth-login { transform: none; }
}

@media (max-width: 700px) {
  .auth-layout--login .auth-identity { padding: 24px 18px; }
  .auth-layout--login .auth-form-panel { padding: 24px 14px; }
}

@media (max-width: 540px) {
  .auth-layout--login .auth-identity {
    min-height: auto;
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 3px solid #5b1417;
  }
  .auth-layout--login .auth-form-panel { min-height: auto; padding: 30px 20px 40px; }
}
/* Verify-email page tuned to the supplied reference. */
.auth-layout--verify { grid-template-columns: minmax(0, 59%) minmax(0, 41%); }
.auth-layout--verify .auth-identity {
  padding: 48px 49px 8px;
}
.auth-layout--verify .auth-identity--branded {
  background-size: 44px 44px, 44px 44px, cover;
  background-position: 0 0, 0 0, center;
}
.auth-layout--verify .auth-identity__brand { gap: 8px; font-size: 10px; letter-spacing: .14em; }
.auth-layout--verify .auth-identity__brand img { width: 36px; height: 36px; flex-basis: 36px; }
.auth-layout--verify .auth-identity__main { transform: translateY(4px); }
.auth-layout--verify .auth-identity__main h1 { margin-bottom: 10px; font-size: 50px; }
.auth-layout--verify .auth-identity__main > p { max-width: 430px; font-size: 15px; line-height: 1.5; }
.auth-layout--verify .auth-identity__features { gap: 13px; margin-top: 30px; }
.auth-layout--verify .auth-feature { gap: 9px; font-size: 12px; }
.auth-layout--verify .auth-feature__icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 10px; }
.auth-layout--verify .auth-feature__icon svg { width: 15px; height: 15px; }
.auth-layout--verify .auth-identity__context { max-width: 410px; padding-top: 16px; line-height: 1.4; }
.auth-layout--verify .auth-form-panel { padding: 48px 46px 48px 64px; }
.auth-layout--verify .auth-verify { transform: translateY(27px); }
.auth-layout--verify .auth-verify .auth-card { padding: 24px 22px; gap: 12px; }
.auth-layout--verify .auth-verify .auth-card::before {
  content: 'VERIFY EMAIL';
  padding-left: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 12px;
}
.auth-layout--verify .auth-verify .auth-card .field { gap: 5px; }
.auth-layout--verify .auth-verify .auth-card .field__label { font-size: 12px; }
.auth-layout--verify .auth-verify .auth-card .input { height: 40px; border-radius: 10px; font-size: 12px; }
.auth-layout--verify .auth-verify #verification-card .auth-email-input { padding-left: 36px; }
.auth-layout--verify .auth-verify #verification-card .verification-code-cells {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.auth-layout--verify .auth-verify #verification-card .verification-code-cell {
  width: 39px;
  height: 46px;
  flex: 0 0 39px;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
}
.auth-layout--verify .auth-verify #verification-card .verification-code-cell:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.auth-layout--verify .auth-verify .auth-card .btn--primary { height: 38px; border-radius: 9px; font-size: 12px; }
.auth-layout--verify .auth-verify .auth-card__footer { margin-top: 16px; }

@media (max-width: 900px) {
  .auth-layout--verify .auth-identity { padding: 36px 28px 8px; }
  .auth-layout--verify .auth-form-panel { padding: 32px 24px; }
  .auth-layout--verify .auth-verify { transform: none; }
}
@media (max-width: 700px) {
  .auth-layout--verify .auth-identity { padding: 24px 18px 8px; }
  .auth-layout--verify .auth-form-panel { padding: 24px 14px; }
  .auth-layout--verify .auth-identity__brand { gap: 8px; font-size: 8px; letter-spacing: .1em; }
  .auth-layout--verify .auth-identity__brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .auth-layout--verify .auth-identity__main { transform: none; }
}
@media (max-width: 540px) {
  .auth-layout--verify .auth-identity { min-height: auto; padding: 20px 24px; border-right: 0; border-bottom: 3px solid #5b1417; }
  .auth-layout--verify .auth-form-panel { min-height: auto; padding: 30px 20px 40px; }
  .auth-layout--verify .auth-verify { transform: none; }
}
/* Shared six-digit code controls; the standalone verify page adds reference sizing below. */
.verification-code-cells { display: flex; justify-content: center; gap: 6px; }
.verification-code-cell { width: 39px; height: 46px; flex: 0 0 39px; padding: 0; border-radius: 10px; text-align: center; font-size: 15px; }
.verification-code-cell:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

@media (max-width: 900px) {
  .auth-layout--verify { grid-template-columns: minmax(0, 56%) minmax(0, 44%); }
}
@media (max-width: 700px) {
  .auth-layout--verify { grid-template-columns: minmax(0, 54%) minmax(0, 46%); }
}
@media (max-width: 540px) {
  .auth-layout--verify { grid-template-columns: 1fr; }
}