:root {
  --bg-main: #4e327f;
  --bg-shadow: #3f2869;
  --card-max: 720px;
  --text-light: #f5f3fb;
  --input-bg: #e8e4dd;
  --button-bg: #10131a;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Helvetica';
  font-style: normal;
  font-weight: normal;
  src: local('Helvetica'), url('fonts/Helvetica.woff') format('woff');
}

@font-face {
  font-family: 'Helvetica';
  font-style: normal;
  font-weight: bold;
  src: local('Helvetica Bold'), url('fonts/Helvetica-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Helvetica Light';
  font-style: normal;
  font-weight: normal;
  src: local('Helvetica Light'), url('fonts/helvetica-light-587ebe5a59211.woff') format('woff');
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text-light);
  background:
    linear-gradient(140deg, rgb(255 255 255 / 0.07), transparent 26%),
    linear-gradient(35deg, rgb(255 255 255 / 0.08), transparent 40%),
    var(--bg-main);
}

.register-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.register-card {
  width: min(100%, var(--card-max));
  min-height: 100vh;
  background: url("./assets/bg.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.07);
}

.hero {
  margin: 0 24px;
  margin-top: 0;
  height: 150px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgb(16 16 16 / 0.24), rgb(16 16 16 / 0.24)),
    url("./assets/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #8a6740, #6b4a2d);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.2) 0%, transparent 65%);
}

.hero h1 {
  position: absolute;
  left: 20px;
  bottom: 45px;
  margin: 0;
  font-size: 20pt;
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.intro {
  padding: 30px 24px 0;
  text-align: center;
}

.intro h2 {
  margin: 0;
  font-size: 16pt;
  letter-spacing: 0.01em;
  font-weight: bold;
}

.intro p {
  margin: 10px 0 0;
  font-size: 13pt;
  font-weight: 400;
  line-height: 1.15;
}

.form {
  padding: 22px 24px 0;
}

.form label {
  display: block;
  margin: 20px 0 5px;
  font-size: 11pt;
  font-weight: 600;
}

.form input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 0.9rem;
  color: #1f1f1f;
  background: var(--input-bg);
}

.form input:focus {
  outline: 3px solid rgb(255 255 255 / 0.45);
}

.hint {
  margin: 18px 0 0;
  font-size: 10pt;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.2;
}

.hint span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  color: #473273;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.form button {
  margin-top: 28px;
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: var(--button-bg);
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 5px;
  background: rgb(255 60 60 / 0.18);
  border: 1px solid rgb(255 100 100 / 0.45);
  color: #ffe0e0;
  font-size: 10.5pt;
  font-weight: 600;
  line-height: 1.35;
}

.brand-footer {
  margin-top: 42px;
  padding: 0 24px 28px;
  text-align: center;
}

.brands {
  min-height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.brands img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.brand-footer p {
  margin: 14px 0 0;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
}

@media (min-width: 768px) {
  .register-page {
    padding: 20px;
  }

  .register-card {
    min-height: unset;
    border-radius: 24px;
    overflow: hidden;
  }

  .intro p {
    font-size: 2.1rem;
  }
}

.hidden {
  display: none;
}

/* ── Privacy checkbox ── */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 10.5pt;
  line-height: 1.35;
}

.privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #7c5cbf;
  cursor: pointer;
}

.privacy-check label {
  margin: 0;
  font-size: 10.5pt;
  font-weight: 400;
  cursor: default;
}

.privacy-link {
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Privacy modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-box {
  background: #1e1730;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 40px rgb(0 0 0 / 0.5);
}

.modal-box h3 {
  margin: 0;
  font-size: 14pt;
  font-weight: 700;
  color: var(--text-light);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  font-size: 10.5pt;
  line-height: 1.6;
  color: rgb(245 243 251 / 0.85);
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-close {
  align-self: flex-end;
  background: var(--button-bg);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 22px;
  font-size: 11pt;
  font-weight: 700;
  cursor: pointer;
}