:root {
  --color-surface: #FFFFFF;
  --color-near-black: #060608;
  --color-hard-white: #F0ECE4;
  --color-amber: #D4915C;
  --color-border: rgba(6, 6, 8, 0.15);
  --color-foreground-faint: rgba(6, 6, 8, 0.30);
}

* {
  line-height: normal;
  box-sizing: border-box;
}

body {
  overflow: auto;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-near-black);
  margin: 0;
}

.container {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT: dark brand panel with stacked amber stripe layers */
.hero {
  position: relative;
  overflow: hidden;
  display: block;
  background-color: var(--color-near-black);
}

.stripe-layer {
  position: absolute;
  left: 0;
  right: 0;
  transition: opacity 0.3s ease-out;
}

.stripe-layer:nth-child(1)  { top: 6%;  height: 80px;  background: rgba(212, 145, 92, 0.04); }
.stripe-layer:nth-child(2)  { top: 14%; height: 48px;  background: rgba(212, 145, 92, 0.08); }
.stripe-layer:nth-child(3)  { top: 22%; height: 120px; background: rgba(212, 145, 92, 0.03); }
.stripe-layer:nth-child(4)  { top: 34%; height: 32px;  background: rgba(212, 145, 92, 0.12); }
.stripe-layer:nth-child(5)  { top: 40%; height: 64px;  background: rgba(212, 145, 92, 0.05); }
.stripe-layer:nth-child(6)  { top: 50%; height: 160px; background: rgba(212, 145, 92, 0.02); }
.stripe-layer:nth-child(7)  { top: 62%; height: 24px;  background: rgba(212, 145, 92, 0.15); }
.stripe-layer:nth-child(8)  { top: 68%; height: 96px;  background: rgba(212, 145, 92, 0.04); }
.stripe-layer:nth-child(9)  { top: 80%; height: 40px;  background: rgba(212, 145, 92, 0.09); }
.stripe-layer:nth-child(10) { top: 88%; height: 72px;  background: rgba(212, 145, 92, 0.03); }

.stripe-layer.signal {
  top: 34%;
  height: 2px;
  /* Ice-blue motion token #A8C4D4 — live state pulse, not signal-fair green. */
  background: rgba(168, 196, 212, 0.25);
  box-shadow: 0 0 40px 8px rgba(168, 196, 212, 0.06);
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.stripe-layer:nth-child(2) { animation: breathe 8s ease-in-out infinite; }
.stripe-layer:nth-child(4) { animation: breathe 12s ease-in-out infinite 2s; }
.stripe-layer:nth-child(7) { animation: breathe 10s ease-in-out infinite 4s; }
.stripe-layer:nth-child(9) { animation: breathe 14s ease-in-out infinite 6s; }
.stripe-layer.signal       { animation: breathe 6s ease-in-out infinite 1s; }

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 520px;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-2 0 104 130' fill='none'><rect x='20' y='4' width='80' height='16' fill='%23F0ECE4'/><rect x='20' y='26' width='80' height='18' fill='%23F0ECE4'/><rect x='20' y='50' width='80' height='20' fill='%23F0ECE4'/><rect x='-2' y='76' width='104' height='24' fill='%23F0ECE4'/><rect x='0' y='106' width='48' height='20' fill='%23F0ECE4'/></svg>");
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  position: absolute;
  left: 60px;
  bottom: 60px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 460px;
  margin: 0;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo svg {
  width: 48px;
  height: auto;
}

.hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-hard-white);
  max-width: 400px;
  margin-bottom: 16px;
}

.hero-title::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-amber);
  margin-bottom: 24px;
}

.hero-paragraph {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.35);
}

.hero-index-labels {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.hero-index-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.25);
  padding: 6px 0;
  border-top: 1px solid rgba(240, 236, 228, 0.1);
}

.hero-index-label.active {
  color: #3DDC84;
  border-top-color: #3DDC84;
}

.lines-container,
.swirly-lines {
  display: none;
}

/* RIGHT: cream login panel */
.content {
  background: var(--color-hard-white);
  display: flex;
  flex-direction: column;
  padding: 60px;
  position: relative;
}

.content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}

.signup-login {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signup-login a:not(:last-child) {
  margin-right: 0;
}

.logo-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-alert {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.logo {
  --logo-color: var(--color-near-black);
  margin-bottom: 48px;
  align-self: flex-start;
}

.logo-form form {
  width: 100%;
  max-width: 380px;
}

.form-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  background: transparent;
}

.form-header {
  border: none;
  height: auto;
  padding: 0;
}

.centered-form-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.form-footer {
  width: 100%;
  margin-top: 24px;
}

.form-brand-blue-border {
  display: none;
}

.form {
  border: none;
  min-height: 0;
  padding: 0;
}

.form-relative-input-container {
  position: relative;
}

.form-hoverbox {
  position: absolute;
  right: 0;
  bottom: 100%;
  transition: opacity 0.1s;
  visibility: hidden;
  opacity: 0;
}

.form-hoverbox.visible {
  visibility: visible;
  opacity: 1;
}

a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  transition: color 0.1s;
  text-decoration: none;
  color: var(--color-amber);
}

a:hover:not(.active) {
  color: #b97845;
}

a.black,
a.active {
  color: var(--color-near-black);
}

a.active {
  font-weight: 500;
}

.footer-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: rgba(6, 6, 8, 0.5);
}

label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 6, 8, 0.6);
  margin-bottom: 8px;
}

label.checkbox,
label.checkbox .checkbox-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(6, 6, 8, 0.6);
}

.asterisk {
  color: #dc3545;
  margin-left: 2px;
}

.form-element {
  margin-bottom: 20px;
}

.form-element.error .error-label {
  color: #dc3545;
}

.form-element.error input {
  border-color: #dc3545;
}

.form-element.error .checkbox-checkmark {
  border-color: #dc3545 !important;
}

.form-element.column {
  display: flex;
  flex-direction: column;
}

.form-element.read-only {
  opacity: 0.4;
}

.form-element.read-only input:focus {
  border-color: rgba(6, 6, 8, 0.15);
}

.error-label {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.error-label:empty:before {
  content: "\200b";
}

.alert {
  position: absolute;
  background-color: transparent;
  top: 64px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}

.alert p {
  margin: 0;
}

.alert.alert-success,
.alert.alert-info {
  color: var(--color-near-black);
}

.alert.alert-warning,
.alert.alert-error {
  color: #dc3545;
}

.flag-icon-big {
  font-size: 1.5em;
}

.error-form {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.error-form > p {
  width: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: rgba(6, 6, 8, 0.7);
}

.error-form-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.account-disabled-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 0;
  width: 100%;
}

.account-disabled-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
  color: rgba(6, 6, 8, 0.7);
}

@media only screen and (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .hero {
    display: none;
  }
}

/* v3 global override for <just-button variant="refresh-progress"> — amber primary */
just-button .just-button--refresh-progress {
  background: var(--color-amber);
  color: var(--color-near-black);
  border: 1px solid var(--color-amber);
  border-radius: 0;
  padding: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
}

just-button .just-button--refresh-progress:hover {
  background: var(--color-near-black);
  color: var(--color-amber);
  border-color: var(--color-near-black);
}

just-button .just-button--refresh-progress:active:hover {
  background: var(--color-near-black);
  color: var(--color-amber);
  border-color: var(--color-near-black);
}

just-button .just-button--refresh-progress:disabled,
just-button .just-button--refresh-progress:disabled:hover {
  background: rgba(6, 6, 8, 0.4);
  color: var(--color-hard-white);
  border-color: rgba(6, 6, 8, 0.4);
  opacity: 1;
  cursor: default;
}

/* v3 global override for <just-button variant="refresh-ghost"> — secondary/cancel */
just-button .just-button--refresh-ghost {
  background: transparent;
  color: var(--color-near-black);
  border: 1px solid rgba(6, 6, 8, 0.2);
  border-radius: 0;
  padding: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}

just-button .just-button--refresh-ghost:hover {
  background: rgba(6, 6, 8, 0.05);
  color: var(--color-near-black);
  border-color: rgba(6, 6, 8, 0.3);
}

just-button .just-button--refresh-ghost:active:hover {
  background: rgba(6, 6, 8, 0.08);
  color: var(--color-near-black);
  border-color: rgba(6, 6, 8, 0.4);
}

just-button .just-button--refresh-ghost:disabled,
just-button .just-button--refresh-ghost:disabled:hover {
  background: transparent;
  color: rgba(6, 6, 8, 0.4);
  border-color: rgba(6, 6, 8, 0.1);
  opacity: 1;
  cursor: default;
}
