:root{
  --text:#fff; --muted:#c7cbd2;
  --stroke:rgba(255,255,255,.38);
  --panel:rgba(0,0,0,.28);
  --radius:20px; --btn:#e9eaee; --btn-text:#0b0b0b;
  --card-w:420px; --input-h:44px; --gap:12px;
  --font:'Inter','Segoe UI',system-ui,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}

/* === Figma layout: left artwork ~46vw; dark patterned right side === */
body{
  margin:0;
  color:var(--text);
  font-family:var(--font);
  background-color:#000;

  /* 1) left artwork  2) dark gradient  3) diagonal pattern */
  background-image:
    url("../img/bg-left.png"),
    linear-gradient(to right, rgba(0,0,0,.20) 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.90) 63%, rgba(0,0,0,.96) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 1px, transparent 1px 86px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: left top, center, right center;
  background-size: 46vw auto, 100% 100%, 1100px 1100px;

  /* place content neatly on the right side */
  display: grid;
  grid-template-columns: 46vw 1fr;
  align-items: start;
  padding: 6vh 6vw;
  gap: 16px;
}

/* Right-side stack (logo+wordmark above the card) */
.panel{
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px; /* tweak to nudge vertical position */
}

/* Brand */
.brand{display:flex; flex-direction:column; gap:8px}
.brand img{height:56px}
.wordmark{font-weight:700; font-size:40px; letter-spacing:.4px; color:#fff}

/* Glass card box */
.card{
  width: var(--card-w);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.45);
  background: var(--panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

h1{margin:4px 0 8px; font-size:30px; font-weight:700}
.small{color:var(--muted); font-size:13px; margin-bottom:12px}

/* Inputs / selects as white-outline pills */
label{display:block; font-size:12px; color:#e4e6eb; margin:12px 0 6px}

.input,.select{
  width:100%;
  height:var(--input-h);
  border-radius:999px;
  border:1.2px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.15);
  color:#fff;
  padding:0 14px;
  outline:none;
}
.input::placeholder{color:#bfc4ce; font-size:12px; letter-spacing:.2px}
.input:focus,.select:focus{box-shadow:0 0 0 3px rgba(255,255,255,.12)}

.field{position:relative}
.link-sm{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  font-size:12px; color:#d1d4db; text-decoration:none;
}

/* Buttons */
.actions{ display:flex; justify-content:center; margin-top:12px }
.btn{
  width:120px; height:36px;
  border:none; border-radius:999px;
  background:var(--btn); color:var(--btn-text);
  font-weight:700; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn:hover{filter:brightness(.96)}

.btn-ghost{
  height:40px; border-radius:999px;
  border:1px solid rgba(255,255,255,.42);
  background:transparent; color:#fff;
  display:flex; align-items:center; justify-content:center;
  width:100%;
}

.row{display:flex; gap:10px; align-items:center; margin-top:10px}
.flash{background:#e74c3c; color:#fff; border-radius:12px; padding:10px; margin-bottom:10px; font-size:14px}

/* Responsive: hide the left artwork and center everything on small screens */
@media (max-width:900px){
  body{
    grid-template-columns: 1fr;
    background-size: 0 0, 100% 100%, 900px 900px; /* hide left image layer */
    background-position: left top, center, center;
    justify-content:center;
    padding: 5vh 4vw;
  }
  .panel{ grid-column: 1; margin-top: 10px; align-items:center }
  .brand{ align-items:center }
  .wordmark{ font-size: 32px }
  .card{ width:min(92vw, 420px) }
}
/* --- show side/hero image on mobile --- */
@media (max-width: 720px) {
  .panel {
    display: grid;
    grid-template-columns: 1fr; /* stack vertically */
    gap: 12px;
  }
  .side, .hero {
    display: block !important;   /* override any display:none */
    order: -1;                   /* appear above the form card */
    height: 32vh;                /* ~ one-third of screen height */
    min-height: 160px;
    border-radius: 16px;
    overflow: hidden;
  }
  .side img, .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* crop nicely */
    display: block;
  }
}
