/*
   Shared Branding Stylesheet
   Dynamic variables (--brand-*, --fc-*, --cp-*, --login-*) are injected
   at runtime by BrandConfig.RenderCssVariables() based on Web.config.
*/


/* Stand-alone staff sign-in page */
body:not(.app-body):not(.customer-body):not(.customer-login-body) {
  background: var(--brand-login-bg, var(--brand-primary));
}

.login-brand {
  background: radial-gradient(circle at 85% 15%, rgba(0, 159, 227, 0.28), transparent 50%),
              radial-gradient(circle at 15% 90%, rgba(211, 35, 42, 0.20), transparent 45%),
              linear-gradient(155deg, var(--brand-primary) 0%, var(--brand-primary-dark) 55%, var(--brand-primary-deep) 100%);
}

.login-brand:before {
  display: none;
}

.login-mark .cut {
  fill: var(--brand-primary-soft);
}

.login-kicker {
  color: var(--brand-accent);
}

.login-shell input[type="text"]:focus,
.login-shell input[type="password"]:focus {
  border-color: var(--brand-accent-dark);
  box-shadow: 0 0 0 3px var(--brand-accent-glow);
}

.login-shell input[type="submit"] {
  border-color: var(--brand-primary-dark);
  color: var(--brand-on-primary);
  background: linear-gradient(145deg,
      var(--brand-primary),
      var(--brand-primary-dark));
  box-shadow: 0 7px 15px var(--brand-primary-glow);
}

/* QAAF staff sign-in: station photography and green glass panel. */
.staff-login[data-brand="qaaf"] .login-shell {
  width: min(100%, 1080px);
  background: transparent;
}

.staff-login[data-brand="qaaf"] .login-brand {
  min-height: 620px;
  padding: 52px;
  background: linear-gradient(rgba(0, 54, 24, 0.74), rgba(0, 48, 20, 0.65)),
              var(--brand-login-background-url) center / cover no-repeat;
}

.staff-login[data-brand="qaaf"] .login-mark {
  width: 230px;
  max-width: 100%;
}

.staff-login[data-brand="qaaf"] .login-mark img {
  max-height: 230px;
  filter: none;
}

.staff-login[data-brand="qaaf"] .login-brand h1 {
  max-width: 390px;
  font-size: 44px;
}

.staff-login[data-brand="qaaf"] .login-brand p {
  font-size: 14px;
  font-weight: 600;
}

.staff-login[data-brand="qaaf"] .login-form {
  padding: 54px 50px;
  background: linear-gradient(#ffffff, #f3f6ee);
}

.staff-login[data-brand="qaaf"] .login-form h2 {
  color: #003819;
}

.staff-login[data-brand="qaaf"] label {
  color: #6b7e70;
  font-size: 10px;
}

.staff-login[data-brand="qaaf"] input[type="text"],
.staff-login[data-brand="qaaf"] input[type="password"],
.staff-login[data-brand="qaaf"] input[type="submit"] {
  border-color: #080ba7;
  border-radius: 14px;
}

.staff-login[data-brand="qaaf"] input[type="text"]:focus,
.staff-login[data-brand="qaaf"] input[type="password"]:focus {
  border-color: #080ba7;
  box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

.staff-login[data-brand="qaaf"] .provider a {
  color: #009c23;
}

.staff-login[data-brand="qaaf"] .login-divider {
  font-size: 9px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .staff-login[data-brand="qaaf"] .login-brand {
    min-height: 280px;
    padding: 34px 28px;
  }
  .staff-login[data-brand="qaaf"] .login-brand h1 {
    font-size: 30px;
  }
  .staff-login[data-brand="qaaf"] .login-form {
    padding: 36px 28px 40px;
  }
}

@media (max-width: 480px) {
  .staff-login[data-brand="qaaf"] .login-brand {
    padding: 24px 20px;
  }
  .staff-login[data-brand="qaaf"] .login-mark {
    width: 180px;
    padding: 0;
  }
  .staff-login[data-brand="qaaf"] .login-brand h1 {
    font-size: 24px;
  }
  .staff-login[data-brand="qaaf"] .login-form {
    padding: 28px 20px 32px;
  }
}

/* Modern Alert Modal */
.fc-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.fc-alert-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.fc-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 40, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.fc-alert-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(203, 218, 211, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 48px -8px rgba(11, 37, 40, 0.22), 0 4px 12px rgba(11, 37, 40, 0.08);
  padding: 30px 28px 24px;
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-alert-modal.is-active .fc-alert-dialog {
  transform: scale(1) translateY(0);
}

.fc-alert-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.fc-alert-modal.is-active .fc-alert-icon-wrap {
  animation: fcPopIcon 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fcPopIcon {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fc-alert-success .fc-alert-icon-wrap {
  background: #e8f7ee;
  color: #0f764e;
  border: 2px solid #a4e4be;
}

.fc-alert-warning .fc-alert-icon-wrap {
  background: #fff8eb;
  color: #b45309;
  border: 2px solid #fcd34d;
}

.fc-alert-error .fc-alert-icon-wrap {
  background: #fef2f2;
  color: #b91c1c;
  border: 2px solid #fca5a5;
}

.fc-alert-info .fc-alert-icon-wrap {
  background: #eff6ff;
  color: #1d4ed8;
  border: 2px solid #93c5fd;
}

.fc-alert-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.3;
  stroke: currentColor;
  fill: none;
}

.fc-alert-title {
  margin: 0 0 9px;
  color: #0b2e35;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.fc-alert-message {
  margin: 0 0 22px;
  color: #4b6366;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.fc-alert-actions {
  display: flex;
  justify-content: center;
}

.fc-alert-btn {
  min-width: 130px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9px;
  cursor: pointer;
  outline: none;
  border: none;
  transition: all 0.15s ease;
}

.fc-alert-btn-primary {
  background: #10424b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 66, 75, 0.25);
}

.fc-alert-btn-primary:hover,
.fc-alert-btn-primary:focus-visible {
  background: #0a2d33;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 66, 75, 0.35);
}

.fc-alert-btn-primary:active {
  transform: translateY(0);
}

.fc-alert-btn-secondary {
  background: #f1f5f3;
  color: #315057;
  border: 1px solid #c8d8d1;
}

.fc-alert-btn-secondary:hover,
.fc-alert-btn-secondary:focus-visible {
  background: #e4eee9;
  border-color: #b0c7be;
  color: #10424b;
}

.fc-alert-btn-secondary:active {
  background: #d8e5df;
}

.fc-alert-question .fc-alert-icon-wrap {
  background: #fdf8eb;
  color: #b87a14;
  border: 2px solid #ecd59b;
}

/* Application Topbar Brand Logo Styling */
.hf-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  max-width: 100px;
  height: 44px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.hf-monogram img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 38px;
  object-fit: contain;
  border-radius: 6px;
}

/* QAAF supplies a white logo with transparency, so it needs a dark badge. */
.app-body[data-brand="qaaf"] .hf-monogram {
  width: 68px;
  padding: 3px 6px;
  background: var(--brand-primary-deep, #07301e);
  border: 1px solid var(--brand-border-on-primary, rgba(255, 255, 255, 0.25));
}
