@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --espresso-950: #120d0b;
  --espresso-900: #1b1310;
  --espresso-800: #2a1d18;
  --espresso-700: #443027;
  --cream-50: #fffaf4;
  --cream-100: #f9eddf;
  --cream-200: #eed9c4;
  --copper-500: #df7f45;
  --copper-600: #c96836;
  --amber-400: #f3b760;
  --coral-500: #e86552;
  --teal-500: #2e8b80;
  --ink: #2b211d;
  --muted: #796c65;
  --line: rgba(69, 42, 31, .14);
  --danger: #b94335;
  --shadow: 0 30px 90px rgba(55, 30, 19, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--cream-100); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(244, 183, 96, .25), transparent 31rem),
    radial-gradient(circle at 92% 90%, rgba(232, 101, 82, .12), transparent 28rem),
    var(--cream-100);
}

button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--cream-50);
  background: var(--espresso-950);
  border-radius: .75rem;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.login-shell {
  width: min(1240px, calc(100% - 48px));
  min-height: min(780px, calc(100vh - 48px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(74, 47, 35, .15);
  border-radius: 30px;
  background: rgba(255, 250, 244, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-visual {
  position: relative;
  min-height: 730px;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream-50);
  background: var(--espresso-950);
}

.login-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 13, 11, .06), rgba(18, 13, 11, .86)),
    linear-gradient(90deg, rgba(18, 13, 11, .65), transparent 65%);
}

.login-visual__art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-color: #211511;
  background-image:
    radial-gradient(circle at 70% 22%, rgba(243, 183, 96, .35), transparent 24rem),
    radial-gradient(circle at 28% 68%, rgba(232, 101, 82, .30), transparent 21rem),
    linear-gradient(145deg, rgba(33, 21, 17, .12) 0%, rgba(76, 39, 27, .32) 46%, rgba(25, 17, 15, .58) 100%),
    url("./assets/relay-login-atmosphere-v1.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.login-visual__content {
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4.25rem);
  display: flex;
  flex-direction: column;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--espresso-900);
}

.brand-lockup--light { color: var(--cream-50); }

.brand-lockup > span:last-child { display: grid; gap: .05rem; }
.brand-lockup strong { font-size: 1.16rem; letter-spacing: -.02em; }
.brand-lockup small { font-size: .69rem; letter-spacing: .13em; opacity: .68; text-transform: uppercase; }

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--amber-400);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.visual-copy { max-width: 580px; margin-top: auto; }
.eyebrow { margin: 0 0 .85rem; color: var(--copper-600); font-size: .71rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-visual .eyebrow { color: var(--amber-400); }
.visual-copy h1 { max-width: 11ch; margin: 0; font: 600 clamp(3rem, 5vw, 5rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.055em; text-wrap: balance; }
.visual-copy > p:last-child { max-width: 48ch; margin: 1.5rem 0 0; color: rgba(255,250,244,.72); font-size: .98rem; line-height: 1.7; }

.visual-assurance {
  margin-top: 3.6rem;
  padding-top: 1.35rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  border-top: 1px solid rgba(255,255,255,.13);
}

.assurance-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #b9e1d8;
  background: rgba(46,139,128,.18);
}

.assurance-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visual-assurance > span { display: grid; gap: .15rem; }
.visual-assurance strong { font-size: .83rem; }
.visual-assurance small { color: rgba(255,250,244,.57); font-size: .72rem; }

.login-panel { display: grid; place-items: center; padding: clamp(2rem, 5vw, 5rem); background: rgba(255, 250, 244, .9); }
.login-panel__inner { width: min(100%, 410px); }
.mobile-brand { display: none; margin-bottom: 3rem; }

.login-heading { margin-bottom: 2.1rem; }
.login-heading h2 { margin: 0; color: var(--espresso-900); font: 650 clamp(2.4rem, 4vw, 3.35rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.login-heading > p:last-child { margin: 1rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.65; }

.form-alert {
  margin: 0 0 1.35rem;
  padding: .9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #7c2d24;
  border: 1px solid rgba(185, 67, 53, .2);
  border-radius: 14px;
  background: rgba(232, 101, 82, .09);
  font-size: .8rem;
  line-height: 1.45;
}

.form-alert svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-alert p { margin: 0; }
.form-alert p + p { margin-top: .3rem; }
.form-messages { margin-bottom: 1rem; color: var(--teal-500); font-size: .82rem; }
.form-messages p { margin: .35rem 0; }

.login-form { display: grid; gap: 1.25rem; }
.form-field { display: grid; gap: .55rem; }
.form-field label { color: var(--espresso-800); font-size: .77rem; font-weight: 750; }

.input-shell {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px rgba(255,255,255,.7);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-shell:focus-within {
  border-color: rgba(201, 104, 54, .72);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(223, 127, 69, .13);
}

.form-field--error .input-shell { border-color: rgba(185, 67, 53, .62); }
.input-shell > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #9b8478; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-shell input { width: 100%; min-width: 0; padding: 1rem 0; color: var(--espresso-900); border: 0; outline: 0; background: transparent; font-size: .94rem; }
.input-shell input::selection { color: #fff; background: var(--copper-600); }

.password-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  padding: .45rem .3rem;
  color: var(--copper-600);
  border: 0;
  border-radius: .5rem;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 750;
}

.password-toggle:hover { color: var(--espresso-800); }
.password-toggle:focus-visible { outline: 3px solid rgba(223, 127, 69, .25); outline-offset: 2px; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-errors { color: var(--danger); font-size: .74rem; }
.field-errors p { margin: 0; }

.submit-button {
  min-height: 58px;
  margin-top: .3rem;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff9f2;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(115deg, var(--copper-600), var(--coral-500));
  box-shadow: 0 14px 28px rgba(190, 84, 48, .24), inset 0 1px rgba(255,255,255,.22);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.submit-button:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 18px 34px rgba(190, 84, 48, .3), inset 0 1px rgba(255,255,255,.24); }
.submit-button:active { transform: translateY(0); }
.submit-button:focus-visible { outline: 4px solid rgba(223, 127, 69, .25); outline-offset: 3px; }
.submit-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-footer { margin-top: 2.3rem; padding-top: 1.15rem; display: flex; align-items: center; gap: .6rem; color: #8c7d75; border-top: 1px solid var(--line); font-size: .7rem; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(46,139,128,.1); }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, 1.05fr); }
  .visual-copy h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
}

@media (max-width: 760px) {
  .login-shell { width: 100%; min-height: 100vh; margin: 0; display: block; border: 0; border-radius: 0; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: clamp(1.5rem, 8vw, 4rem) clamp(1.25rem, 7vw, 3rem); align-items: center; }
  .mobile-brand { display: inline-flex; }
  .brand-mark { border-color: rgba(69,42,31,.12); color: var(--copper-600); background: rgba(223,127,69,.08); }
  .login-heading h2 { font-size: clamp(2.45rem, 12vw, 3.2rem); }
}

@media (max-width: 410px) {
  .login-panel { align-items: start; }
  .password-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .input-shell { min-height: 55px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .input-shell, .submit-button, .brand-mark { border: 1px solid ButtonText; }
  .status-dot { background: CanvasText; }
}

/* Match the cream-light operations console. */
body {
  background: linear-gradient(145deg, #f8f6f1 0%, #f2eee6 100%);
}
.login-shell {
  background: rgba(255, 254, 250, .94);
  border-color: #dedad2;
  box-shadow: 0 24px 70px rgba(50, 45, 37, .1);
}
.login-visual {
  background: #f5f2eb;
  color: #171715;
}
.login-visual::after {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .08), rgba(245, 242, 235, .82)),
    linear-gradient(90deg, rgba(255, 254, 250, .84), rgba(255, 254, 250, .34));
}
.login-visual__art {
  background-color: #f5f2eb;
  filter: saturate(.45) opacity(.3);
}
.brand-lockup--light { color: #171715; }
.login-visual .brand-mark {
  background: #fffefa;
  border-color: #decbbb;
  box-shadow: 0 8px 22px rgba(64, 50, 38, .08);
  color: #a45c2e;
}
.login-visual .eyebrow { color: #8f582f; }
.visual-copy h1 { color: #171715; }
.visual-copy > p:last-child { color: #65615b; }
.visual-assurance { border-color: #d9d5cd; }
.assurance-icon { background: #eaf3e9; color: #4e7c57; }
.visual-assurance strong { color: #242321; }
.visual-assurance small { color: #77736d; }
.login-panel { background: #fffefa; }
.input-shell { background: #fff; border-color: #dedad2; }
.submit-button {
  background: #171715;
  box-shadow: none;
}
.submit-button:hover { box-shadow: 0 12px 28px rgba(36, 33, 28, .16); }

/* TeamLobby admin sign-in parity. */
:root {
  color-scheme: dark;
  --espresso-950: #0b0e14;
  --espresso-900: #131822;
  --espresso-800: #1c2433;
  --espresso-700: #2a364d;
  --cream-50: #ffffff;
  --cream-100: #0b0e14;
  --cream-200: #1c2433;
  --copper-500: #d4af37;
  --copper-600: #d4af37;
  --amber-400: #e5c158;
  --coral-500: #ef4444;
  --teal-500: #10b981;
  --ink: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .1);
  --danger: #f87171;
  --shadow: 0 30px 90px rgba(0, 0, 0, .32);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(212, 175, 55, .1), transparent 31rem),
    radial-gradient(circle at 92% 90%, rgba(16, 185, 129, .05), transparent 28rem),
    #0b0e14;
  color: #ffffff;
}
.login-shell {
  background: rgba(19, 24, 34, .96);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}
.login-visual {
  background: #0b0e14;
  color: #ffffff;
}
.login-visual::after {
  background:
    linear-gradient(180deg, rgba(11, 14, 20, .06), rgba(11, 14, 20, .88)),
    linear-gradient(90deg, rgba(11, 14, 20, .78), transparent 68%);
}
.login-visual__art {
  background-color: #0b0e14;
  filter: saturate(.55) brightness(.52);
}
.brand-lockup, .brand-lockup--light { color: #ffffff; }
.brand-mark, .login-visual .brand-mark {
  background: rgba(212, 175, 55, .1);
  border-color: rgba(212, 175, 55, .24);
  box-shadow: none;
  color: #d4af37;
}
.eyebrow, .login-visual .eyebrow { color: #d4af37; }
.visual-copy h1, .login-heading h2 {
  color: #ffffff;
  font-family: "Outfit", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}
.visual-copy > p:last-child, .login-heading > p:last-child { color: #9ca3af; }
.visual-assurance { border-color: rgba(255, 255, 255, .1); background: rgba(19, 24, 34, .68); }
.assurance-icon { background: rgba(16, 185, 129, .1); color: #34d399; }
.visual-assurance strong { color: #ffffff; }
.visual-assurance small { color: #9ca3af; }
.login-panel { background: #131822; }
.form-field label { color: #d1d5db; }
.input-shell {
  background: #0b0e14;
  border-color: rgba(255, 255, 255, .1);
}
.input-shell:focus-within {
  background: #0b0e14;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}
.input-shell input { color: #ffffff; }
.input-shell input::placeholder { color: #6b7280; }
.input-shell svg, .password-toggle { color: #9ca3af; }
.password-toggle:hover { color: #ffffff; }
.form-alert {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .18);
  color: #f87171;
}
.form-messages { color: #34d399; }
.submit-button {
  background: linear-gradient(135deg, #d4af37, #b89524);
  color: #0b0e14;
  box-shadow: none;
}
.submit-button:hover {
  background: linear-gradient(135deg, #e5c158, #d4af37);
  box-shadow: 0 12px 28px rgba(212, 175, 55, .16);
}
.login-footer { border-color: rgba(255, 255, 255, .08); color: #6b7280; }
.status-dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .1); }

@media (max-width: 760px) {
  .login-panel { background: #131822; }
  .mobile-brand .brand-mark { background: rgba(212, 175, 55, .1); border-color: rgba(212, 175, 55, .24); color: #d4af37; }
}
