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

* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;700&display=swap');

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Arimo', 'Helvetica Neue', 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: 42px;
  border-bottom-right-radius: 42px;
  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;
}

.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: 1rem;
  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; }