: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)}
/* Password-first access keeps secondary paths out of the primary form. */
.auth-card-inner [hidden]{display:none!important}
#authTitle{font:900 clamp(28px,5vw,46px)/1.05 var(--font-body);letter-spacing:-.04em;margin:0 0 12px}
#authDescription{line-height:1.5;margin:0 0 22px;font-size:16px}
.auth-text-button{background:none;border:0;padding:12px 0;color:var(--auth-blue);font:600 15px var(--font-body);text-decoration:underline;cursor:pointer;text-align:left}
#otherAccess{margin:18px 0}#otherAccess summary{cursor:pointer;font-size:14px}#otherAccess button{margin-top:12px}
.auth-field small{font:400 13px var(--font-body);text-transform:none;letter-spacing:0}
.auth-form input{font-size:16px!important}.auth-main-button:disabled{opacity:.6;cursor:wait}
/* Original La Casa access identity, independent of application chrome. */
body.auth-page-v14{background:var(--auth-paper);color:var(--auth-ink)}
.auth-public-header{min-height:86px;background:#fff;padding:10px 28px}
.auth-logo{display:block;flex:0 0 auto;line-height:0}
.auth-logo img{display:block;width:230px;height:auto}
.auth-entry-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--auth-paper);min-height:calc(100dvh - 86px)}
.auth-hero{min-height:calc(100dvh - 86px);padding:48px 32px;align-items:flex-start;background:var(--auth-blue) url('../assets/lce-system/manifesto.png') center/cover no-repeat}
.auth-hero::before,.auth-hero::after{display:none}
.auth-hero-inner{max-width:100%;padding-top:24px}
.auth-hero h1{font-size:clamp(32px,4.2vw,68px);line-height:.98;letter-spacing:-.04em}
.auth-hero p{font-size:14px;max-width:240px}
.auth-bottom-note{left:32px;right:32px;width:auto;background:transparent;border:0;padding:0}
.auth-card-zone{min-height:calc(100dvh - 86px);padding:40px clamp(24px,4vw,64px)}
.auth-card{width:100%;max-width:440px}
.auth-card-inner{padding:28px}
#authTitle{font:400 clamp(30px,3.3vw,46px)/1.02 var(--font-display);letter-spacing:-.03em;margin:0 0 14px}
#authDescription{font-size:15px;margin-bottom:22px}
.auth-tabs{gap:12px;margin-bottom:24px}
.auth-tabs button,.auth-main-button,.auth-provider-button{min-height:48px;font-size:12px;padding:10px;border-radius:0}
.auth-field{gap:9px}.auth-field span{font-size:12px}.auth-form{gap:20px}
.auth-field input{min-height:48px;padding:10px 12px;font-weight:800;border-radius:0;appearance:none}
.auth-main-button{width:100%;margin-top:2px}
.auth-text-button{font:700 13px var(--font-mono);line-height:1.5;padding:16px 0 0;min-height:44px}
#otherAccess.auth-social{display:flex;align-items:center;gap:14px;margin:24px 0 0;padding-top:20px;border-top:1px solid #05050530}
.auth-social>span{font:700 12px var(--font-mono);margin-right:auto}
#otherAccess .auth-provider-button{display:grid;place-items:center;width:50px;height:48px;margin:0;padding:10px;flex:none}
.auth-social .spotify{background:#1ed760}.auth-social img{display:block}
.auth-small-note{font-size:11px;margin-top:22px}
button:focus-visible,a:focus-visible{outline:3px solid var(--auth-blue);outline-offset:6px}
.auth-tabs button:hover,.auth-main-button:hover,.auth-provider-button:hover{transform:translate(-1px,-1px)}
@media(max-width:1100px){.auth-nav a:not(.auth-access-link){display:none}.auth-hero{padding:38px 24px}.auth-card-zone{padding:32px 24px}.auth-card-inner{padding:24px}}
@media(max-width:760px){
 .auth-public-header{min-height:70px;padding:10px 16px;align-items:center}.auth-logo img{width:185px}.auth-access-link{min-width:64px;padding:10px;font-size:10px}
 .auth-entry-shell{grid-template-columns:1fr}.auth-hero{min-height:220px;padding:24px;background-position:center 48%}.auth-hero-inner{padding:0}
 .auth-hero h1{font-size:36px;max-width:240px}.auth-hero p{font-size:12px;margin-top:14px}.auth-bottom-note{display:none}
 .auth-card-zone{min-height:0;border-top:2px solid var(--auth-ink);padding:28px 18px 38px}.auth-card-inner{padding:24px 18px}#authTitle{font-size:34px}
 .auth-tabs button{font-size:11px}.auth-card{max-width:440px}.auth-field input{font-size:16px!important}
}
