/* Shared MVC authentication page shell (Falcon/Bootstrap visual language) */

.auth-shell {
  align-items: center;
  background: var(--falcon-body-bg, #edf2f9);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

.auth-shell__brand {
  align-items: center;
  color: #273b56;
  display: flex;
  font-size: 1.15rem;
  font-weight: 700;
  gap: 0.55rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.auth-shell__brand-text {
  color: inherit;
}

.auth-shell__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
  width: 100%;
}

.auth-shell__panel--narrow {
  max-width: 26rem;
}

.auth-shell__panel--wide {
  max-width: 38rem;
}

.auth-shell__footer-note {
  color: #6b7b93;
  font-size: 0.84rem;
  text-align: center;
}

.auth-shell__footer-note a,
.auth-card__footer a,
.auth-shell__links a {
  color: #2f6fb3;
  font-weight: 600;
  text-decoration: none;
}

.auth-shell__footer-note a:hover,
.auth-card__footer a:hover,
.auth-shell__links a:hover {
  color: #1f5ed2;
  text-decoration: underline;
}

/* Card */

.auth-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.auth-card__title {
  color: #273b56;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
}

.auth-card__subtitle {
  color: #6b7b93;
  font-size: 0.925rem;
  line-height: 1.45;
  margin: 0;
}

.auth-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.auth-card__footer {
  background: #f9fafd;
  border-top: 1px solid #edf2f8;
  color: #6b7b93;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  gap: 0.35rem;
  padding: 1rem 1.5rem;
  text-align: center;
}

.auth-card__divider {
  align-items: center;
  color: #9da9bb;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card__divider::before,
.auth-card__divider::after {
  border-top: 1px solid #dbe4f0;
  content: "";
  flex: 1;
}

.auth-shell__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-shell__actions--row {
  flex-direction: row;
  flex-wrap: wrap;
}

.auth-shell__links {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.4rem 1.25rem;
  justify-content: center;
}

/* Identity display rows */

.auth-identity-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-identity {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e1e8f2;
  border-radius: 0.6rem;
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
}

.auth-identity__avatar {
  align-items: center;
  border-radius: 0.5rem;
  display: grid;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  height: 2.4rem;
  justify-items: center;
  place-items: center;
  width: 2.4rem;
}

.auth-identity__avatar--google {
  background: #fff;
  border: 1px solid #dbe4f0;
}

.auth-identity__avatar--google svg {
  height: 1.25rem;
  width: 1.25rem;
}

.auth-identity__avatar--crm {
  background: #e9fbf8;
  border: 1px solid #a6ebe3;
  color: #0d7f73;
}

.auth-identity__avatar--neutral {
  background: #eef2f7;
  border: 1px solid #d4dce7;
  color: #51627a;
}

.auth-identity__avatar--danger {
  background: #fff1f2;
  border: 1px solid #ffc9cf;
  color: #c7354b;
}

.auth-identity__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.auth-identity__label {
  color: #6b7b93;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-identity__value {
  color: #1f2f46;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-identity__note {
  color: #6b7b93;
  font-size: 0.8rem;
  line-height: 1.4;
}

.auth-identity-connector {
  align-items: center;
  color: #b6c1d2;
  display: flex;
  height: 1.25rem;
  justify-content: center;
}

.auth-identity-connector svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* Forms and validation */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form__label {
  color: #33465f;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.auth-form__hint {
  color: #6b7b93;
  font-size: 0.8rem;
}

.auth-form .form-control,
.auth-form .form-select {
  border: 1px solid #d8e2ef;
  border-radius: 0.5rem;
  color: #1f2f46;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: #2c7be5;
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.15);
  color: #1f2f46;
}

.auth-form .input-validation-error {
  border-color: #e63757;
}

.auth-form .input-validation-error:focus {
  border-color: #e63757;
  box-shadow: 0 0 0 0.2rem rgba(230, 55, 87, 0.15);
}

.auth-form .field-validation-error {
  color: #c7354b;
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-validation-summary {
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
}

.auth-validation-summary.validation-summary-errors {
  background: #fff1f2;
  border: 1px solid #ffc9cf;
  color: #c7354b;
  font-size: 0.875rem;
}

.auth-validation-summary.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-validation-summary.validation-summary-valid {
  display: none;
}

/* Alerts */

.auth-alert {
  align-items: flex-start;
  border-radius: 0.6rem;
  display: flex;
  font-size: 0.9rem;
  gap: 0.75rem;
  line-height: 1.4;
  margin: 0;
}

.auth-alert .auth-alert__message {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-alert .btn-close {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Buttons */

.auth-btn {
  align-items: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: #1f2f46;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  line-height: 1.2;
  padding: 0.6rem 1.15rem;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.auth-btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
  outline: 0;
}

.auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-btn--primary {
  background: var(--falcon-primary, #2c7be5);
  border-color: var(--falcon-primary, #2c7be5);
  color: #fff;
}

.auth-btn--primary:hover {
  background: #215cac;
  border-color: #215cac;
  color: #fff;
}

.auth-btn--secondary {
  background: #fff;
  border-color: #cfd9e8;
  color: #2b3e57;
}

.auth-btn--secondary:hover {
  background: #eef3fb;
  border-color: #b5c5de;
  color: #1f5ed2;
}

.auth-btn--destructive {
  background: var(--falcon-danger, #e63757);
  border-color: var(--falcon-danger, #e63757);
  color: #fff;
}

.auth-btn--destructive:hover {
  background: #b82c46;
  border-color: #b82c46;
  color: #fff;
}

.auth-btn--google {
  background: #fff;
  border-color: #d8e2ef;
  color: #3c4043;
}

.auth-btn--google:hover {
  background: #f8fafc;
  border-color: #b6c1d2;
  color: #3c4043;
}

.auth-btn--lg {
  font-size: 1rem;
  padding: 0.7rem 1.25rem;
}

.auth-btn--block {
  display: flex;
  width: 100%;
}

.auth-btn__icon {
  flex-shrink: 0;
  height: 1.05rem;
  width: 1.05rem;
}

.auth-shell__actions .auth-btn__icon {
  height: 1.25rem;
  width: 1.25rem;
}

/* Responsive behavior */

@media (min-width: 576px) {
  .auth-shell__actions .auth-btn {
    width: auto;
  }

  .auth-shell__actions .auth-btn--block {
    width: 100%;
  }

  .auth-shell__actions--row .auth-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 1.25rem 0.75rem;
  }

  .auth-card__header {
    padding: 1.15rem 1.1rem 1rem;
  }

  .auth-card__body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .auth-card__footer {
    padding: 0.85rem 1.1rem;
  }

  .auth-shell__actions .auth-btn,
  .auth-shell__actions--row .auth-btn {
    width: 100%;
  }

  .auth-shell__actions--row {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .auth-identity {
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
  }

  .auth-identity__avatar {
    height: 2.1rem;
    width: 2.1rem;
  }
}

/* Login quick actions */

.auth-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-quick-action {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 0.6rem;
  color: #1f2f46;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.85rem;
  line-height: 1.3;
  min-height: 3.6rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  width: 100%;
}

.auth-quick-action:hover {
  background: #f4f8fd;
  border-color: #b5c5de;
  color: #1f5ed2;
}

.auth-quick-action:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
  outline: 0;
}

.auth-quick-action__icon {
  align-items: center;
  background: var(--falcon-primary, #2c7be5);
  border-radius: 0.55rem;
  color: #fff;
  display: grid;
  flex-shrink: 0;
  height: 2.4rem;
  place-items: center;
  width: 2.4rem;
}

.auth-quick-action__icon svg {
  height: 1.15rem;
  width: 1.15rem;
}

.auth-quick-action__label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 575.98px) {
  .auth-quick-action {
    gap: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .auth-quick-action__icon {
    height: 2.15rem;
    width: 2.15rem;
  }
}

/* Split variant (opt-in: ViewData["AuthLayoutVariant"] = "split") */

.auth-shell--split .auth-shell__brand {
  display: none;
}

.auth-split {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 30rem;
}

.auth-split__hero {
  display: none;
}

.auth-split__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.auth-split__mobile-brand {
  align-items: center;
  color: #273b56;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
}

.auth-split__mobile-brand-mark {
  align-items: center;
  background: var(--falcon-primary, #2c7be5);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  color: #fff;
  display: grid;
  font-size: 1.15rem;
  font-weight: 700;
  height: 2.6rem;
  place-items: center;
  width: 2.6rem;
}

.auth-split__mobile-brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-shell--split .auth-shell__panel {
  margin-inline: auto;
}

@media (min-width: 992px) {
  .auth-shell--split {
    padding: 2.5rem 1.5rem;
  }

  .auth-split {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px -20px rgba(31, 47, 70, 0.18);
    flex-direction: row;
    max-width: 66rem;
    min-height: 38rem;
    overflow: hidden;
  }

  .auth-split__hero {
    display: flex;
    flex: 0 0 44%;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    position: relative;
  }

  .auth-split__hero-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
  }

  .auth-split__hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(31, 47, 70, 0) 32%,
      rgba(31, 47, 70, 0.55) 64%,
      rgba(31, 47, 70, 0.88) 100%
    );
    inset: 0;
    position: absolute;
  }

  .auth-split__hero-content {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
  }

  .auth-split__hero-badge {
    align-items: center;
    background: var(--falcon-primary, #2c7be5);
    border-radius: 0.65rem;
    box-shadow: 0 8px 16px -8px rgba(31, 47, 70, 0.5);
    color: #fff;
    display: grid;
    font-size: 1.15rem;
    font-weight: 700;
    height: 2.6rem;
    margin-bottom: 0.25rem;
    place-items: center;
    width: 2.6rem;
  }

  .auth-split__hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 0;
  }

  .auth-split__hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 26rem;
  }

  .auth-split__content {
    flex: 1 1 auto;
    justify-content: center;
    padding: 2.5rem 2.75rem;
  }

  .auth-split__mobile-brand {
    display: none;
  }

  .auth-shell--split .auth-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .auth-shell--split .auth-card__header {
    text-align: center;
  }

  .auth-shell--split .auth-card__footer {
    background: transparent;
  }
}

@media (min-width: 1200px) {
  .auth-split__content {
    padding: 3rem 3.5rem;
  }
}
