.auth-body {
  min-height: 100vh;
  color: var(--app-text);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--alfa-red) 8%, transparent), transparent 34%),
    #f4f6f8;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
}

.auth-showcase {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, var(--alfa-red), transparent 32%),
    radial-gradient(circle at 5% 85%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(145deg, var(--alfa-red) 0%, var(--alfa-red) 100%);
}

.auth-showcase::after {
  content: "";
  width: 340px;
  height: 340px;
  position: absolute;
  right: -180px;
  bottom: -150px;
  border: 50px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.auth-showcase-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}

.auth-showcase-brand:hover {
  color: #fff;
}

.auth-showcase-brand img {
  width: 82px;
  height: 46px;
  object-fit: contain;
}

.auth-showcase-brand span {
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-showcase-content {
  max-width: 560px;
  margin: auto 0;
  position: relative;
  z-index: 1;
}

.auth-eyebrow {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-showcase-content h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.auth-showcase-content p {
  max-width: 510px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.auth-showcase-content ul {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-showcase-content li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-showcase-content li i {
  color: var(--alfa-yellow);
  font-size: 1.15rem;
}

.auth-showcase-footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.auth-main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
}

.auth-main-scroll {
  align-items: flex-start;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}

.auth-card {
  width: min(100%, 500px);
  padding: clamp(1.35rem, 4vw, 2.1rem);
  border: 1px solid var(--app-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.1);
}

.auth-card-wide {
  width: min(100%, 680px);
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--app-text);
  text-decoration: none;
  font-weight: 750;
}

.auth-mobile-brand img {
  width: 78px;
  height: 42px;
  object-fit: contain;
}

.auth-card-header {
  margin-bottom: 1.35rem;
}

.auth-card-header .auth-eyebrow {
  color: var(--alfa-red);
}

.auth-card-header h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.auth-card-header p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-field {
  min-width: 0;
}

.auth-field-full {
  grid-column: 1 / -1;
}

.auth-form .form-label {
  margin-bottom: 0.4rem;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 680;
}

.auth-form .form-control,
.auth-form .form-select {
  min-height: 50px;
  border-color: #d0d5dd;
  border-radius: 11px;
  color: var(--app-text);
  background-color: #fff;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--alfa-red) 13%, transparent);
}

.auth-input-group {
  position: relative;
}

.auth-input-group .form-control {
  padding-right: 3rem;
}

.auth-password-toggle {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: #667085;
  background: transparent;
}

.auth-password-toggle:hover {
  color: var(--alfa-red);
  background: #f2f4f7;
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.75rem;
}

.auth-form-errors {
  padding: 0.75rem 0.85rem;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #b42318;
  background: #fef3f2;
  font-size: 0.78rem;
}

.auth-form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.auth-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 11px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
}

.auth-links a {
  color: var(--alfa-red);
  font-weight: 650;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-note {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 11px;
  color: #475467;
  background: #f2f4f7;
  font-size: 0.78rem;
}

.auth-note i {
  flex: 0 0 auto;
  color: var(--alfa-red);
}

.auth-turnstile {
  min-height: 68px;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.auth-turnstile-widget {
  width: 100%;
  min-height: 65px;
}

.auth-turnstile-status {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.auth-turnstile-status[data-state="success"] {
  color: #176a38;
}

.auth-turnstile-status[data-state="error"] {
  color: #b42318;
}

.auth-actions [data-turnstile-submit]:disabled,
.auth-body.turnstile-pending .auth-actions [data-turnstile-submit] {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.auth-password-rules {
  margin: 0;
  padding: 0.75rem 0.85rem 0.75rem 2rem;
  border-radius: 10px;
  color: #667085;
  background: #f8f9fb;
  font-size: 0.74rem;
}

.auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-status-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 20px;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  font-size: 2rem;
}

.auth-status-icon-success {
  color: #079455;
  background: #ecfdf3;
}

.auth-status h2 {
  font-size: 1.6rem;
  font-weight: 750;
}

.auth-status p {
  max-width: 410px;
  color: var(--app-text-muted);
}

@media (max-width: 991.98px) {
  .auth-layout {
    display: block;
  }

  .auth-showcase {
    display: none;
  }

  .auth-main,
  .auth-main-scroll {
    min-height: 100vh;
    align-items: center;
    padding: 1rem;
  }

  .auth-mobile-brand {
    display: flex;
  }
}

@media (max-width: 575.98px) {
  .auth-body {
    background: #fff;
  }

  .auth-main,
  .auth-main-scroll {
    align-items: flex-start;
    padding: 0;
  }

  .auth-card,
  .auth-card-wide {
    min-height: 100vh;
    padding: 1.15rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-field-full {
    grid-column: auto;
  }
}
