:root {
  --bg: #f7f6fb;
  --text: #1a1533;
  --muted: #6b6680;
  --line: #e4e0ef;
  --accent: #e20464;
  --accent-soft: rgba(226, 4, 100, 0.14);
  --accent-text: #ffffff;
  --brand-color: #211298;
  --brand-tracking: 0.02em;
  --font-display: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --visual-fallback: #211298;
  --error-bg: #fdecea;
  --error-text: #8f2d24;
  --error-border: #f0c4be;
  --ok-bg: #eef0ff;
  --ok-text: #211298;
  --ok-border: #c8c4e8;
}

body.theme-sova360 {
  background: #f7f6fb;
}

.theme-sova360 .split-visual-overlay {
  background: linear-gradient(
    180deg,
    rgba(33, 18, 152, 0.15) 0%,
    transparent 35%,
    rgba(18, 10, 60, 0.72) 100%
  );
}

.auth-logo-white {
  display: block;
  width: min(220px, 55%);
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.auth-logo-link {
  display: inline-block;
  text-decoration: none;
}

.auth-logo-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

.theme-sova360 .btn-primary {
  background: #e20464;
  border-color: #e20464;
}

.theme-sova360 .btn-primary:hover {
  background: #211298;
  border-color: #211298;
}

.theme-sova360 .auth-nav a.is-active {
  border-bottom-color: #e20464;
  color: #211298;
}

.theme-sova360 .field input:focus,
.theme-sova360 .field select:focus,
.theme-sova360 .field textarea:focus {
  border-color: #e20464;
  box-shadow: 0 0 0 3px rgba(226, 4, 100, 0.14);
}

.theme-sova360 .brand {
  color: #211298;
}

.auth-copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.auth-copyright a {
  color: var(--muted);
}

/* Registration / wizard needs more width */
body.page-registration .split {
  grid-template-columns: 1fr minmax(420px, 760px);
}

body.page-registration .form-inner {
  max-width: 720px;
}

body.page-registration .auth-form-legacy .form-control,
body.page-registration .auth-form-legacy select,
body.page-registration .auth-form-legacy input[type="text"],
body.page-registration .auth-form-legacy input[type="password"],
body.page-registration .auth-form-legacy input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

body.page-registration .auth-form-legacy .btn-primary {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: #e20464;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.field select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfc;
  color: var(--text);
  font: inherit;
}

.clearfix { clear: both; }
