/**
 * Premium login — Emirates brand (teal / navy).
 * Loaded only on auth/login.blade.php (body.phase-auth-premium).
 */

body.phase-auth-premium {
  --auth-teal: #25abb4;
  --auth-teal-light: #5ecdd4;
  --auth-navy: #035167;
  --auth-navy-deep: #022a36;
  --auth-surface: #e1f7fb;
  --auth-surface-soft: #f4fcfe;
  --auth-ink: #0b2530;
  --auth-muted: #5a7280;
  --auth-border: rgba(3, 81, 103, 0.12);
  --auth-shadow: 0 24px 64px rgba(3, 81, 103, 0.12);
  --auth-radius: 18px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--auth-surface-soft);
  min-height: 100vh;
}

body.phase-auth-premium .auth-page,
body.phase-auth-premium .auth-page > .container-fluid,
body.phase-auth-premium .auth-page .row {
  min-height: 100vh;
  background: transparent;
}

body.phase-auth-premium .auth-premium-shell {
  display: grid;
  grid-template-columns: min(520px, 44vw) 1fr;
  min-height: 100vh;
}

/* ── Form column ── */
body.phase-auth-premium .auth-premium-form-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(900px 480px at -10% 0%, rgba(37, 171, 180, 0.14), transparent 55%),
    radial-gradient(700px 420px at 110% 100%, rgba(3, 81, 103, 0.08), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, var(--auth-surface-soft) 100%);
  border-right: 1px solid var(--auth-border);
  z-index: 2;
}

body.phase-auth-premium .auth-premium-form-column::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: calc(var(--auth-radius) + 6px);
  border: 1px solid rgba(37, 171, 180, 0.08);
  pointer-events: none;
}

body.phase-auth-premium .auth-premium-form-wrap {
  position: relative;
  width: min(100%, 400px);
  margin: auto 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: authFormEnter 0.65s ease both;
}

body.phase-auth-premium .auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

body.phase-auth-premium .auth-logo .auth-brand-logo {
  max-width: min(100%, 260px);
  max-height: 72px;
  filter: drop-shadow(0 8px 18px rgba(3, 81, 103, 0.08));
}

body.phase-auth-premium .auth-premium-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

body.phase-auth-premium .auth-premium-heading h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
  margin: 0 0 0.5rem;
}

body.phase-auth-premium .auth-premium-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.phase-auth-premium .auth-premium-field {
  margin-bottom: 1.1rem;
}

body.phase-auth-premium .auth-premium-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

body.phase-auth-premium .auth-premium-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

body.phase-auth-premium .auth-premium-input-wrap {
  position: relative;
}

body.phase-auth-premium .auth-premium-input-wrap .auth-field-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-teal);
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.85;
}

body.phase-auth-premium .auth-premium-input-wrap .form-control {
  height: 48px;
  padding: 0.65rem 0.95rem 0.65rem 2.65rem;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--auth-ink);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.phase-auth-premium .auth-premium-input-wrap .form-control::placeholder {
  color: #94a8b2;
}

body.phase-auth-premium .auth-premium-input-wrap .form-control:focus {
  border-color: rgba(37, 171, 180, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 171, 180, 0.14);
  background: #fff;
}

body.phase-auth-premium .auth-pass-inputgroup .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

body.phase-auth-premium .auth-pass-inputgroup.auth-premium-input-wrap .auth-field-icon {
  z-index: 3;
}

body.phase-auth-premium .auth-pass-inputgroup.auth-premium-input-wrap .form-control {
  padding-left: 2.65rem;
  position: relative;
  z-index: 1;
}

body.phase-auth-premium .auth-input-addon {
  height: 48px;
  border-radius: 0 12px 12px 0 !important;
  border: 1px solid var(--auth-border) !important;
  border-left: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--auth-muted) !important;
  transition: color 0.2s ease, background 0.2s ease;
}

body.phase-auth-premium .auth-input-addon:hover {
  background: var(--auth-surface) !important;
  color: var(--auth-navy) !important;
  border-color: rgba(37, 171, 180, 0.35) !important;
}

body.phase-auth-premium .auth-link-muted {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.phase-auth-premium .auth-link-muted:hover {
  color: var(--auth-teal) !important;
}

body.phase-auth-premium .auth-btn-primary {
  height: 50px;
  margin-top: 0.35rem;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(120deg, var(--auth-navy) 0%, var(--auth-teal) 100%) !important;
  font-weight: 600 !important;
  font-size: 0.975rem !important;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(37, 171, 180, 0.32) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

@keyframes authFormEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.phase-auth-premium .auth-btn-primary:hover,
body.phase-auth-premium .auth-content .btn.btn-primary:hover,
body.phase-auth-premium .auth-content .btn.btn-primary:focus,
body.phase-auth-premium .auth-content .btn.btn-primary:active {
  transform: translateY(-2px);
  filter: brightness(1.03);
  background: linear-gradient(120deg, var(--auth-navy) 0%, var(--auth-teal-light) 100%) !important;
  border: none !important;
  box-shadow: 0 16px 36px rgba(37, 171, 180, 0.38) !important;
  color: #fff !important;
}

body.phase-auth-premium .auth-premium-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.15rem;
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.phase-auth-premium .auth-premium-divider::before,
body.phase-auth-premium .auth-premium-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(3, 81, 103, 0.15), transparent);
}

body.phase-auth-premium .auth-btn-alt {
  height: 48px;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1.5px solid rgba(3, 81, 103, 0.22) !important;
  color: var(--auth-navy) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  line-height: 1;
}

body.phase-auth-premium .auth-btn-alt:hover,
body.phase-auth-premium .auth-content .btn.btn-dark:hover,
body.phase-auth-premium .auth-content .btn.auth-btn-alt:hover {
  background: rgba(225, 247, 251, 0.85) !important;
  border-color: var(--auth-teal) !important;
  color: var(--auth-navy) !important;
  box-shadow: 0 8px 20px rgba(3, 81, 103, 0.1) !important;
  transform: translateY(-1px);
}

body.phase-auth-premium .auth-premium-trial {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

body.phase-auth-premium .auth-premium-trial a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}

body.phase-auth-premium .auth-premium-trial a:hover {
  color: var(--auth-navy);
}

body.phase-auth-premium .auth-footer-note {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

body.phase-auth-premium .auth-footer-note .mdi-heart {
  color: var(--auth-teal) !important;
}

/* ── Visual column ── */
body.phase-auth-premium .auth-premium-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--auth-navy-deep);
}

body.phase-auth-premium .auth-premium-visual::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url("/assets/images/auth-bg-office.png") center center / cover no-repeat;
  animation: authBgKenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes authBgKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.06) translate(-1.2%, -0.8%);
  }
}

body.phase-auth-premium .auth-premium-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(125deg, rgba(2, 42, 54, 0.88) 0%, rgba(3, 81, 103, 0.72) 42%, rgba(37, 171, 180, 0.48) 100%);
  pointer-events: none;
  animation: authOverlayPulse 10s ease-in-out infinite alternate;
}

body.phase-auth-premium .auth-premium-visual-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(37, 171, 180, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

@keyframes authOverlayPulse {
  0% {
    opacity: 0.92;
  }
  100% {
    opacity: 1;
  }
}

body.phase-auth-premium .auth-premium-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: authOrbFloat 14s ease-in-out infinite alternate;
  z-index: 2;
}

body.phase-auth-premium .auth-premium-orbs span:nth-child(1) {
  width: 320px;
  height: 320px;
  top: 8%;
  right: 12%;
  background: rgba(37, 171, 180, 0.45);
}

body.phase-auth-premium .auth-premium-orbs span:nth-child(2) {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: 10%;
  background: rgba(3, 81, 103, 0.5);
  animation-delay: -4s;
}

body.phase-auth-premium .auth-premium-orbs span:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 42%;
  left: 38%;
  background: rgba(94, 205, 212, 0.35);
  animation-delay: -8s;
}

@keyframes authOrbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 4%) scale(1.08);
  }
}

body.phase-auth-premium .auth-premium-hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
}

body.phase-auth-premium .auth-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: authHeroFadeUp 0.7s ease both;
}

body.phase-auth-premium .auth-premium-badge i {
  font-size: 0.9rem;
  color: var(--auth-teal-light);
}

body.phase-auth-premium .auth-premium-hero-title,
body.phase-auth-premium .auth-premium-hero h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.4);
  animation: authHeroFadeUp 0.8s ease 0.12s both;
}

body.phase-auth-premium .auth-hero-accent {
  display: inline;
  color: #a8eef4 !important;
  -webkit-text-fill-color: #a8eef4;
  text-shadow:
    0 0 32px rgba(37, 171, 180, 0.65),
    0 2px 16px rgba(0, 0, 0, 0.45);
}

body.phase-auth-premium .auth-premium-hero > p {
  max-width: 42ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  animation: authHeroFadeUp 0.8s ease 0.24s both;
}

@keyframes authHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.phase-auth-premium .auth-premium-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: authHeroFadeUp 0.8s ease 0.36s both;
}

body.phase-auth-premium .auth-premium-stats li {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.phase-auth-premium .auth-premium-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(168, 238, 244, 0.45);
  box-shadow: 0 12px 40px rgba(37, 171, 180, 0.2);
}

body.phase-auth-premium .auth-premium-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: #fff;
}

body.phase-auth-premium .auth-premium-stats span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
}

body.phase-auth-premium .auth-bg-branded::after {
  display: none !important;
}

/* Hide legacy bootstrap columns styling conflicts */
body.phase-auth-premium .auth-full-page-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.phase-auth-premium .auth-content h5 {
  color: var(--auth-ink);
}

body.phase-auth-premium .alert-top-border {
  border-radius: 12px;
  border-top: 3px solid #c53030;
}

@media (max-width: 991.98px) {
  body.phase-auth-premium .auth-premium-shell {
    grid-template-columns: 1fr;
  }

  body.phase-auth-premium .auth-premium-visual {
    order: -1;
    min-height: 280px;
  }

  body.phase-auth-premium .auth-premium-hero {
    justify-content: center;
    padding: 2rem 1.5rem;
  }

  body.phase-auth-premium .auth-premium-hero h2 {
    font-size: 1.75rem;
    max-width: none;
  }

  body.phase-auth-premium .auth-premium-stats {
    display: none;
  }

  body.phase-auth-premium .auth-premium-form-column {
    border-right: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.phase-auth-premium .auth-premium-form-column::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.phase-auth-premium .auth-premium-visual::before,
  body.phase-auth-premium .auth-premium-visual-overlay,
  body.phase-auth-premium .auth-premium-orbs span,
  body.phase-auth-premium .auth-premium-badge,
  body.phase-auth-premium .auth-premium-hero-title,
  body.phase-auth-premium .auth-premium-hero h2,
  body.phase-auth-premium .auth-premium-hero > p,
  body.phase-auth-premium .auth-premium-stats,
  body.phase-auth-premium .auth-premium-form-wrap {
    animation: none !important;
  }
}

/* Shared auth page extras (code login, 2FA, trial, etc.) */
body.phase-auth-premium .auth-premium-form-wrap--wide {
  max-width: min(100%, 460px);
}

body.phase-auth-premium .auth-premium-step {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-teal);
  margin-bottom: 0.65rem;
}

body.phase-auth-premium .auth-premium-step-spaced {
  margin-top: 1.5rem;
}

body.phase-auth-premium .auth-premium-hint {
  font-size: 0.8125rem;
  color: var(--auth-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.45;
}

body.phase-auth-premium .auth-premium-back-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

body.phase-auth-premium .auth-premium-back-link a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}

body.phase-auth-premium .auth-premium-back-link a:hover {
  color: var(--auth-navy);
}

body.phase-auth-premium .auth-content .btn-dark,
body.phase-auth-premium .auth-content .btn.btn-dark {
  height: 48px;
  border-radius: 12px !important;
  background: var(--auth-navy) !important;
  border: 1px solid var(--auth-navy) !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

body.phase-auth-premium .auth-content .btn-dark:hover,
body.phase-auth-premium .auth-content .btn.btn-dark:hover,
body.phase-auth-premium .auth-content .btn-dark:focus {
  background: #023544 !important;
  border-color: #023544 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(3, 81, 103, 0.25) !important;
  transform: translateY(-1px);
}

body.phase-auth-premium .auth-content .form-group .form-control,
body.phase-auth-premium .auth-content .auth-premium-field .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
}

body.phase-auth-premium .auth-content .form-group .form-control:focus,
body.phase-auth-premium .auth-content .auth-premium-field .form-control:focus {
  border-color: rgba(37, 171, 180, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 171, 180, 0.14);
}

body.phase-auth-premium .auth-content .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-ink);
}

body.phase-auth-premium .auth-content .alert-top-border {
  border-radius: 12px;
}

body.phase-auth-premium .auth-content .text-primary {
  color: var(--auth-teal) !important;
}

body.phase-auth-premium .auth-content .btn-link {
  color: var(--auth-teal);
  font-weight: 500;
}

body.phase-auth-premium .auth-content .btn-link:hover {
  color: var(--auth-navy);
}

body.phase-auth-premium .auth-pw-strength {
  margin-top: 0.55rem;
  overflow: hidden;
  max-height: 48px;
  opacity: 1;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

body.phase-auth-premium .auth-pw-strength.is-dormant {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

body.phase-auth-premium .auth-pw-meter {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.phase-auth-premium .auth-pw-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.25s ease, background-color 0.25s ease;
  background: #e2e8f0;
}

body.phase-auth-premium .auth-pw-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

body.phase-auth-premium .auth-pw-meter-hint {
  font-size: 0.75rem;
  color: var(--auth-muted);
}

body.phase-auth-premium .auth-pw-meter-badge {
  display: inline-flex;
  align-items: center;
  min-width: 4.5rem;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
}

body.phase-auth-premium .auth-pw-meter-badge--short,
body.phase-auth-premium .auth-pw-meter-badge--weak {
  color: #b91c1c;
  background: #fef2f2;
}

body.phase-auth-premium .auth-pw-meter-badge--medium {
  color: #b45309;
  background: #fffbeb;
}

body.phase-auth-premium .auth-pw-meter-badge--strong {
  color: #15803d;
  background: #f0fdf4;
}

body.phase-auth-premium .auth-premium-icon-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  color: var(--auth-teal);
  font-size: 2rem;
}

body.phase-auth-premium.phase-auth-centered .auth-premium-shell {
  grid-template-columns: 1fr;
}

body.phase-auth-premium.phase-auth-centered .auth-premium-visual {
  display: none;
}

body.phase-auth-premium.phase-auth-centered .auth-premium-form-column {
  align-items: center;
  border-right: none;
}

body.phase-auth-premium.phase-auth-centered .auth-premium-form-wrap {
  max-width: min(100%, 520px);
  text-align: center;
}

body.phase-auth-premium.phase-auth-centered .auth-premium-heading {
  text-align: center;
}
