:root {
  --page-bg: #030914;
  --panel-bg: #081632;
  --field-bg: #050f21;
  --gold: #378dd4;
  --text: #e5edf3;
  --muted: #b1c1cd;
  --border: rgba(55, 141, 212, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(5, 13, 30, 0.88), rgba(3, 9, 20, 0.94)),
    url("images/bg.jpg") center / cover fixed no-repeat;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(8rem, 12vw, 10rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  width: min(100%, 980px);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px 6px 24px 6px;
  background: var(--panel-bg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.auth-visual {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #040a16;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 17, 38, 0.04) 25%, rgba(4, 11, 24, 0.96) 82%);
}

.auth-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.auth-visual-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-visual h1 {
  margin: 0.7rem 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.auth-visual p,
.auth-visual li {
  color: #c2ced8;
  line-height: 1.65;
}

.auth-visual ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.auth-visual li {
  position: relative;
  padding-left: 1.15rem;
}

.auth-visual li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.25rem);
}

.auth-logo {
  width: auto;
  max-width: 150px;
  max-height: 64px;
  object-fit: contain;
}

.auth-form-panel h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.auth-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #ced7df;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  outline: 0;
  background: var(--field-bg);
  color: white;
}

.field input:focus {
  border-color: var(--gold);
}

.form-options,
.terms-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.terms-row {
  justify-content: flex-start;
}

.auth-form a,
.auth-switch a {
  color: var(--gold);
  text-decoration: none;
}

.auth-submit {
  min-height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  background: linear-gradient(155deg, #0e66ae, #093e69);
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
}

.auth-submit:hover {
  background: linear-gradient(155deg, #0e66ae, #093e69);
}

.auth-switch {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.back-home {
  display: inline-block;
  margin-top: 1.25rem;
  color: #6ba1ce;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
}

.responsible-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: #5996c8;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .auth-page {
    display: block;
    padding: 84px 0 0;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  /* Mobile reading order: original image, introduction, then form. */
  .auth-visual {
    min-height: 0;
  }

  .auth-visual > img {
    height: auto;
  }

  .auth-visual::after {
    display: none;
  }

  .auth-visual-copy {
    position: static;
    padding: 1.5rem 1.25rem;
  }

  .auth-form-panel {
    padding: 2rem 1.25rem 3rem;
  }
}

.auth-page-header .desktop-buttons a,
.auth-page-header .mobile-buttons a {
  text-decoration: none;
}

/* Woospin red / gold auth theme */
:root{--page-bg:#030914;--panel-bg:#061126;--field-bg:#040b19;--gold:#138aec;--text:#ebf4fb;--muted:#abc1d3;--border:rgba(19, 138, 236,.34)}
body{background:linear-gradient(rgba(6, 16, 37,.7),rgba(3, 8, 18,.88)),url("images/bg.jpg") center/cover fixed no-repeat}
.auth-shell{background:linear-gradient(145deg,#091836,#040b19);border-color:var(--border);box-shadow:0 30px 90px rgba(0, 0, 0,.65),0 0 30px rgba(13, 95, 163,.14)}
.auth-visual{background:#040c1b}.auth-visual::after{background:linear-gradient(to bottom,rgba(7, 19, 44,.08) 20%,rgba(4, 10, 23,.97) 88%)}
.auth-form-panel{background:linear-gradient(160deg,#07142d,#040b18)}
.auth-form input{background:#040a17;border-color:rgba(19, 138, 236,.3);color:#ffffff}
.auth-submit{border-color:#4aa5f0;background:linear-gradient(180deg,#1281dc,#0b5088 60%,#0f295c);box-shadow:0 4px 0 #0b1e44}
.auth-submit:hover{background:linear-gradient(180deg,#2e98ee,#0e65ac 60%,#093e69)}
