:root {
  --brand-red: #de1219;
  --brand-red-dark: #b90d13;
  --brand-ink: #1c1e23;
  --brand-muted: #6e7280;
  --brand-surface: #ffffff;
  --brand-border: rgba(28, 30, 35, 0.1);
  --brand-shadow: 0 16px 40px rgba(28, 30, 35, 0.08);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  color: var(--brand-ink);
  background: #f3f4f7;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.public-card {
  width: min(760px, 100%);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  box-shadow: var(--brand-shadow);
  padding: 36px;
}

.brand-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.brand-logo {
  width: 188px;
  max-width: 100%;
  height: auto;
}

.title-block {
  margin-bottom: 28px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin: 0;
  /*max-width: 54ch;*/
  color: var(--brand-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.registration-form,
.status-card {
  border-top: 1px solid rgba(28, 30, 35, 0.08);
  padding-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(28, 30, 35, 0.12);
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(222, 18, 25, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(222, 18, 25, 0.12);
}

.actions-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.btn-submit,
.btn-link-action {
  min-width: 180px;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-primary,
.btn-link-action {
  background: var(--brand-red);
  border: none;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-link-action:hover,
.btn-link-action:focus {
  background: var(--brand-red-dark);
}

.validation-summary,
.field-validation,
.validation-summary-errors {
  color: #a51d21;
}

.validation-summary {
  margin-bottom: 18px;
}

.field-validation {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
}

.status-card h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.status-card p,
.status-card li {
  color: var(--brand-muted);
  line-height: 1.7;
}

.details-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 30, 35, 0.08);
}

.details-list strong {
  color: var(--brand-ink);
}

.secondary-link {
  color: var(--brand-red-dark);
  font-weight: 600;
  text-decoration: none;
}

.secondary-link:hover,
.secondary-link:focus {
  text-decoration: underline;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 20px 14px;
  }

  .public-card {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .details-list li {
    flex-direction: column;
    gap: 4px;
  }

  .btn-submit,
  .btn-link-action {
    width: 100%;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.85), 0 0 0 0.35rem rgba(222, 18, 25, 0.18);
}