﻿.dcf-main > .dcf-hero {
  display: none !important;
}

.auth-shell {
  --app-primary: #d00000;
  --app-primary-hover: #a80000;
  --app-accent: #2563a8;
  --app-success: #198754;
  --app-danger: #b42318;
  --app-bg: #f4f5f7;
  --app-surface: #ffffff;
  --app-surface-muted: #f7f7f8;
  --app-text: #242629;
  --app-muted: #626871;
  --app-border: #d7dae0;
  --app-input-border: #aeb4be;
  --app-focus-ring: rgba(37, 99, 168, 0.28);
  --app-shadow: 0 18px 48px rgba(28, 31, 36, 0.12);
  color: var(--app-text);
}

.auth-shell,
.auth-shell *,
.auth-shell *::before,
.auth-shell *::after {
  box-sizing: border-box;
}

.auth-shell,
.auth-shell :where(input, button, select, textarea) {
  font-family: "Work Sans", "Segoe UI", sans-serif;
}

.auth-shell :where(a) {
  color: var(--app-primary);
}

.auth-shell :where(a:hover, a:focus) {
  color: var(--app-primary-hover);
}

.auth-shell :where(.btn, button) {
  min-height: 44px;
  border-radius: 4px !important;
  font-weight: 650;
  letter-spacing: 0;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.auth-shell .btn-primary {
  border: 1px solid var(--app-primary) !important;
  background: var(--app-primary) !important;
  color: #fff !important;
}

.auth-shell .btn-primary:hover {
  border-color: var(--app-primary-hover) !important;
  background: var(--app-primary-hover) !important;
}

.auth-shell :where(.btn-secondary, .btn-outline-secondary) {
  border: 1px solid var(--app-input-border) !important;
  background: var(--app-surface) !important;
  color: var(--app-text) !important;
}

.auth-shell :where(input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea, .form-control) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--app-input-border) !important;
  border-radius: 4px !important;
  background: var(--app-surface) !important;
  color: var(--app-text) !important;
}

.auth-shell :where(input:focus, select:focus, textarea:focus, .form-control:focus, .btn:focus, button:focus, a:focus-visible) {
  outline: none !important;
  border-color: var(--app-accent) !important;
  box-shadow: 0 0 0 3px var(--app-focus-ring) !important;
}

.auth-shell :where(.field-validation-error, .validation-summary-errors, .validation-message) {
  color: var(--app-danger);
  font-weight: 600;
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1120px, calc(100% - 32px));
  min-height: 620px;
  margin: 48px auto 72px;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-top: 4px solid var(--app-primary);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 4vw, 54px);
  border-right: 1px solid var(--app-border);
  background: var(--app-surface-muted);
  color: var(--app-text);
}

.auth-kicker {
  margin: 0 0 22px;
  color: var(--app-primary);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--app-text);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-intro p:not(.auth-kicker) {
  max-width: 470px;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
  min-width: 0;
  padding: 48px clamp(30px, 5vw, 58px);
}

.auth-panel h2 {
  margin: 0 0 8px;
  color: var(--app-text);
  font-size: 1.75rem;
  letter-spacing: 0;
}

.auth-panel-copy {
  margin: 0 0 28px;
  color: var(--app-muted);
}

.auth-sso,
.auth-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none !important;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-form-group > label:not(.auth-check) {
  display: block;
  margin-bottom: 7px;
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--app-text);
  cursor: pointer;
}

.auth-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--app-primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--app-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--app-border);
  content: "";
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--app-primary);
  background: var(--app-surface-muted);
}

.auth-notice-success {
  border-left-color: var(--app-success);
}

.password-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: -6px 0 20px;
  padding: 0;
  color: var(--app-muted);
  font-size: 0.82rem;
  list-style: none;
}

.password-requirements li::before {
  display: inline-block;
  width: 1.75em;
  color: var(--app-muted);
  content: "[ ]";
}

.password-requirements li.is-valid {
  color: var(--app-success);
}

.password-requirements li.is-valid::before {
  content: "[x]";
}

.auth-shell button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.85;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner {
    animation-duration: 1400ms;
  }
}

@media (max-width: 800px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 24px auto 48px;
  }

  .auth-intro {
    min-height: 230px;
    padding: 36px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .auth-intro h1 {
    font-size: 2.35rem;
  }

  .auth-panel {
    padding: 38px 30px 42px;
  }

  .password-requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .auth-shell {
    width: calc(100% - 20px);
  }

  .auth-intro,
  .auth-panel {
    padding-right: 22px;
    padding-left: 22px;
  }
}
