:root {
  --auth-blue: #003dff;
  --auth-ink: #050505;
  --auth-paper: #fbfaf4;
  --auth-muted: #dfe8f8;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "Archivo", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.auth-page-v14 {
  min-height: 100dvh;
  overflow-x: hidden;
  background: #070812;
  color: #ffffff;
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-public-header {
  position: relative;
  z-index: 20;
  min-height: 74px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--auth-ink);
  background: var(--auth-paper);
  color: var(--auth-ink);
}

.auth-logo {
  color: var(--auth-blue);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: .78;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 29px);
  min-width: 0;
}

.auth-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-access-link {
  min-width: 82px;
  padding: 14px 20px;
  border: 2px solid var(--auth-ink);
  background: var(--auth-blue);
  color: #ffffff !important;
  box-shadow: 5px 5px 0 var(--auth-ink);
  text-align: center;
}

.auth-entry-shell {
  min-height: calc(100dvh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  background:
    linear-gradient(100deg, rgba(0, 61, 255, .96) 0%, rgba(0, 61, 255, .92) 43%, rgba(5, 5, 8, .98) 72%, #060712 100%);
}

.auth-hero {
  position: relative;
  min-width: 0;
  min-height: calc(100dvh - 74px);
  display: flex;
  align-items: center;
  padding: clamp(52px, 7vw, 96px) clamp(30px, 5.6vw, 86px);
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: -28% -16%;
  background-image: url("../assets/img/text_background.png");
  background-repeat: repeat;
  background-size: min(760px, 56vw) auto;
  opacity: .25;
  mix-blend-mode: screen;
  transform: rotate(-7deg) scale(1.16);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 38%, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(90deg, rgba(0, 61, 255, .16), transparent 52%, rgba(0, 0, 0, .68));
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.auth-kicker {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.auth-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
}

.auth-bottom-note {
  position: absolute;
  z-index: 3;
  left: clamp(30px, 5.6vw, 86px);
  right: 30px;
  bottom: 18px;
  width: min(640px, calc(100% - 60px));
  padding: 12px 14px;
  border-left: 5px solid var(--auth-blue);
  background: rgba(5, 5, 5, .84);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.auth-card-zone {
  position: relative;
  z-index: 3;
  min-height: calc(100dvh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 32px;
  background: var(--auth-paper);
  color: var(--auth-ink);
}

.auth-card {
  position: relative;
  width: min(100%, 332px);
}

.auth-card-shadow {
  position: absolute;
  inset: 8px -8px -8px 8px;
  background: var(--auth-blue);
  pointer-events: none;
}

.auth-card-inner {
  position: relative;
  z-index: 1;
  padding: 25px 20px 22px;
  border: 2px solid var(--auth-ink);
  background: var(--auth-paper);
}

.auth-card h2 {
  margin: 0 0 18px;
  color: var(--auth-ink);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 16px;
}

.auth-tabs button,
.auth-main-button,
.auth-provider-button {
  min-height: 40px;
  border: 2px solid var(--auth-ink);
  border-radius: 0;
  background: #ffffff;
  color: var(--auth-ink);
  box-shadow: 4px 4px 0 var(--auth-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tabs button.active,
.auth-main-button {
  background: var(--auth-blue);
  color: #ffffff;
}

.auth-main-button {
  width: min(100%, 160px);
  margin: 0;
}

.auth-provider-button {
  width: 100%;
  margin-top: 10px;
}

.auth-provider-button.spotify {
  background: #25d366;
  color: #071009;
}

.auth-provider-button:disabled,
.auth-main-button:disabled {
  cursor: wait;
  opacity: .68;
}

.auth-info-box {
  margin: 0 0 15px;
  padding: 13px 11px;
  border: 2px solid var(--auth-ink);
  background: #edf3ff;
  color: var(--auth-ink);
  font-size: 12px;
  line-height: 1.36;
  font-weight: 900;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field[hidden] {
  display: none !important;
}

.auth-field span {
  color: var(--auth-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 2px solid var(--auth-ink);
  border-radius: 0;
  background: #eaf1ff;
  color: var(--auth-ink);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.auth-field input:focus {
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--auth-blue);
}

.auth-small-note {
  margin: 15px 0 0;
  color: var(--auth-ink);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
}

.auth-status {
  margin: 13px 0 0;
  padding: 11px;
  border: 2px solid var(--auth-ink);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

.auth-status[data-type="success"] {
  background: #dfffee;
}

.auth-status[data-type="error"] {
  background: #ffe3e3;
}

.auth-status[data-type="info"] {
  background: #edf3ff;
}

.code-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.code-modal.open {
  display: grid;
}

.code-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .58);
  backdrop-filter: blur(11px);
}

.code-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px;
  border: 2px solid var(--auth-ink);
  background: var(--auth-paper);
  color: var(--auth-ink);
  box-shadow: 10px 10px 0 var(--auth-blue);
}

.code-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--auth-ink);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.code-panel .auth-kicker {
  color: var(--auth-blue);
}

.code-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: .82;
  text-transform: uppercase;
}

.code-panel p {
  max-width: 420px;
  font-weight: 800;
  line-height: 1.45;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.code-grid input {
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--auth-ink);
  background: #ffffff;
  color: var(--auth-ink);
  text-align: center;
  font-size: 24px;
  font-weight: 950;
  outline: none;
}

.code-grid input:focus {
  border-color: var(--auth-blue);
  box-shadow: 3px 3px 0 var(--auth-blue);
}

@media (max-width: 1080px) {
  .auth-entry-shell {
    grid-template-columns: 1fr;
  }

  .auth-card-zone {
    min-height: auto;
    border-top: 2px solid var(--auth-ink);
  }

  .auth-hero {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .auth-public-header {
    align-items: flex-start;
    min-height: auto;
    padding: 15px 18px;
  }

  .auth-nav {
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .auth-nav a:not(.auth-access-link) {
    display: none;
  }

  .auth-hero {
    min-height: 190px;
    padding: 24px 20px;
  }

  .auth-hero h1 {
    font-size: 42px;
  }

  .auth-bottom-note {
    display: none;
  }

  .auth-card-zone {
    padding: 28px 18px 38px;
  }

  .auth-card-inner {
    padding: 20px 16px;
  }
  .auth-card-inner h2{font-size:36px}
  .auth-hero .auth-kicker{display:none}
  .auth-hero p{font-size:12px}
  .auth-field input{font-size:16px;min-height:42px}

  .code-panel {
    padding: 24px 18px;
  }

  .code-grid {
    gap: 6px;
  }

  .code-grid input {
    min-height: 50px;
    font-size: 20px;
  }
}
.auth-code-dialog{position:fixed;inset:0;margin:auto;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);border:0;overflow:auto;color:#151515}
.auth-code-dialog:not([open]){display:none}.auth-code-dialog::backdrop{background:#0009}
.auth-page-v14 [hidden]{display:none!important}
.auth-code-dialog input{font-size:24px;letter-spacing:0}.auth-hero{isolation:isolate;overflow:hidden}
.auth-hero::before{content:'LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT LA CASA EMERGENT';position:absolute;inset:-10%;font:80px/1.2 'Archivo Black',Impact,sans-serif;color:transparent;-webkit-text-stroke:1px #ffffff1a;z-index:-1;pointer-events:none;overflow:hidden;transform:rotate(-10deg)}
