:root {
  --paper: #fbf6ef;
  --paper-2: #f3eadf;
  --ink-0: #141312;
  --ink-1: #2b2a28;
  --ink-2: #5a544d;
  --accent-0: #c7522a;
  --accent-1: #1f6a7a;
  --accent-2: #9a7b4f;
  --card: #ffffff;
  --shadow: 0 18px 35px rgba(20, 19, 18, 0.16);
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Work Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink-1);
  background: linear-gradient(140deg, var(--paper) 0%, #fdfbf7 40%, var(--paper-2) 100%);
  margin: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 10% 20%, rgba(199, 82, 42, 0.12) 0, transparent 60%),
    radial-gradient(520px 320px at 90% 10%, rgba(31, 106, 122, 0.12) 0, transparent 60%),
    radial-gradient(700px 420px at 60% 90%, rgba(154, 123, 79, 0.12) 0, transparent 60%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px 40px;
}

.hero-text {
  padding-right: 10px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--accent-1);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Crimson Text", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 52px;
  line-height: 1.02;
  margin: 0 0 18px;
  color: var(--ink-0);
}

.hero-lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 520px;
}

.register-hero .hero-content {
  padding-bottom: 70px;
}

.register-content {
  margin-top: 40px;
}

.info-panel {
  background: var(--card);
  border: 1px solid rgba(20, 19, 18, 0.08);
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.info-panel__title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent-1);
  font-weight: 700;
  margin-bottom: 12px;
}

.theme-lead {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.theme-quote {
  font-family: "Crimson Text", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-0);
  background: var(--paper);
  border-left: 4px solid var(--accent-0);
  padding: 14px 16px;
}

.rules-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.partners-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 12px;
}

.register-footer {
  margin-top: 10px;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 16px;
}

.choice-card {
  background: var(--card);
  border-radius: 6px;
  padding: 28px 26px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 19, 18, 0.08);
}

.choice-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-0);
  margin-bottom: 6px;
}

.choice-card__subtitle {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 16px;
}

.choice-actions .btn {
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: none;
}

.btn-primary {
  background: var(--ink-0);
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 19, 18, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  filter: brightness(1.08);
}

.btn-outline {
  background: #fff;
  color: var(--ink-0);
  border: 2px solid rgba(31, 106, 122, 0.45);
}

.btn-outline:hover,
.btn-outline:focus {
  color: var(--ink-0);
  border-color: var(--accent-0);
}

.choice-card__note {
  font-size: 12px;
  color: #6b7280;
}

.logo-strip {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-item {
  text-align: center;
  margin-bottom: 16px;
}

.ist_logo_img {
  max-height: 88px;
  max-width: 100%;
  filter: grayscale(10%) drop-shadow(0 8px 16px rgba(20, 19, 18, 0.1));
}

.login-hero .hero-text {
  padding-right: 18px;
}

.login-card {
  background: var(--card);
  border-radius: 8px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 19, 18, 0.08);
}

.login-card__title {
  font-family: "Crimson Text", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 24px;
  color: var(--ink-0);
  margin: 0 0 16px;
}

.login-card .text-danger {
  display: block;
  margin-bottom: 10px;
}

.login-card .form-control {
  border-radius: 6px;
  border: 1px solid #e2dbd1;
  padding: 12px 14px;
  height: auto;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.login-card .form-control:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(31, 106, 122, 0.18);
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 14px;
}

.login-card .alert {
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 40px;
  }

  .choice-card {
    margin-top: 28px;
  }

  .logo-strip {
    margin-top: 32px;
  }
}

@media (max-width: 991px) {
  .login-card {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .hero-content {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .logo-strip {
    flex-direction: column;
  }
}
