/* WiseBOS Suite AI — Login split layout
   Left: rotating hero carousel on dark teal gradient (ebos-inspired)
   Right: white login pane
   ----------------------------------------------------------------- */

:root {
  --ebos-deep:   #0E2A3C;   /* deepest navy/teal */
  --ebos-mid:    #134B6A;   /* mid teal */
  --ebos-bright: #1E7F9E;   /* highlight teal */
  --ebos-accent: #FF8A1F;   /* WiseBOS orange */
  --ebos-accent-dark: #E5730F;
  --ink:         #0E2A3C;
  --ink-soft:    #4A5568;
  --hairline:    #E2E8F0;
  --bg-soft:     #F8FAFC;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== LEFT PANEL — hero carousel ============================ */
.auth-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at -10% 110%, rgba(255,138,31,0.18), transparent 60%),
    radial-gradient(900px 600px at 110% -10%, rgba(30,127,158,0.45), transparent 55%),
    linear-gradient(135deg, var(--ebos-deep) 0%, var(--ebos-mid) 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* faint grid texture */
.auth-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* slow-moving glow */
.auth-hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: -120px; top: 40%;
  background: radial-gradient(circle, rgba(255,138,31,0.25), transparent 65%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0)     scale(1);   }
  50%  { transform: translate(120px,-40px) scale(1.15); }
  100% { transform: translate(80px,120px) scale(0.95); }
}

.hero-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 44px 0;
}
.hero-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.hero-brand img { height: 32px; width: auto; display: block; filter: brightness(0) invert(1); }
/* Larger hero logo variant — matches the visual prominence of the WiseBOS
   mark on the right-hand login card but scaled up for the marketing panel. */
.hero-brand-lg img { height: 88px; filter: brightness(0) invert(1); }
.hero-brand .fallback {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-weight: 800; font-size: 22px; letter-spacing: -0.3px;
}
.hero-brand .fallback .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ebos-accent); }

.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 36px; height: 4px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.25); cursor: pointer;
  padding: 0; transition: background .25s ease, transform .25s ease;
}
.hero-dots button[aria-selected="true"] { background: var(--ebos-accent); transform: scaleY(1.4); }

.hero-slides {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 64px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 64px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
  text-align: left;
}
.hero-slide[data-active="true"] { opacity: 1; transform: translateY(0); }

.hero-slide .art { width: 100%; max-width: 460px; margin-bottom: 28px; }
.hero-slide h2 {
  font-size: 38px; line-height: 1.1; font-weight: 800;
  margin: 0 0 14px; letter-spacing: -1px; max-width: 480px;
}
.hero-slide h2 em { font-style: normal; color: var(--ebos-accent); }
.hero-slide p {
  margin: 0; font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.75); max-width: 460px;
}

.hero-foot {
  position: relative; z-index: 3;
  padding: 20px 44px 28px;
  font-size: 12.5px; color: rgba(255,255,255,0.65);
  display: flex; justify-content: flex-start; align-items: center;
  letter-spacing: 0.2px;
}
.hero-foot a { color: rgba(255,255,255,0.65); text-decoration: none; }
.hero-foot a:hover { color: #fff; }

/* ===== RIGHT PANEL — form =================================== */
.auth-form {
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: #ffffff;
}
.auth-card { width: 100%; max-width: 420px; }

.auth-card .brand-stack { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.auth-card .brand-stack img { height: 44px; width: auto; }
.auth-card .brand-stack .fallback {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); font-weight: 800; font-size: 26px;
}
.auth-card .brand-stack .fallback .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ebos-accent); }

.auth-card h1 {
  font-size: 28px; line-height: 1.2; font-weight: 800;
  margin: 18px 0 6px; color: var(--ink); letter-spacing: -0.5px;
}
.auth-card .lead { margin: 0 0 28px; color: var(--ink-soft); font-size: 14.5px; }

.auth-card .field { margin-bottom: 16px; }
.auth-card .field label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--ink-soft); margin-bottom: 6px;
}
.auth-card .field input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--hairline); border-radius: 10px;
  background: #ffffff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.auth-card .field input:hover { border-color: #C9D2DD; }
.auth-card .field input:focus {
  outline: none; border-color: var(--ebos-accent);
  box-shadow: 0 0 0 4px rgba(255,138,31,0.15);
}

.auth-card .row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 13.5px; }
.auth-card .row-between label { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); cursor: pointer; }
.auth-card .row-between a { color: var(--ebos-mid); font-weight: 600; text-decoration: none; }
.auth-card .row-between a:hover { color: var(--ebos-accent); }

.auth-card .btn-primary {
  width: 100%; padding: 13px 18px; border: 0; border-radius: 10px;
  background: var(--ebos-accent); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  transition: background .15s ease, transform .05s ease;
  font-family: inherit;
}
.auth-card .btn-primary:hover { background: var(--ebos-accent-dark); }
.auth-card .btn-primary:active { transform: translateY(1px); }
.auth-card .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-card .alert {
  padding: 12px 14px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.5; margin-bottom: 16px;
}
.auth-card .alert.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.auth-card .alert.warn    { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.auth-card .alert.info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

.auth-card .field input.code {
  font-size: 28px; letter-spacing: 8px; text-align: center; padding: 14px;
}

.auth-card .below { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.auth-card .below a { color: var(--ebos-mid); font-weight: 600; text-decoration: none; }
.auth-card .below a:hover { color: var(--ebos-accent); }

.auth-foot {
  margin-top: 36px; text-align: center;
  font-size: 12px; color: #94A3B8;
}

/* ===== Responsive ============================================ */
@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { min-height: 340px; }
  .hero-slides { padding: 0 32px; }
  .hero-slide  { padding: 0 32px; }
  .hero-slide h2 { font-size: 28px; }
  .hero-slide .art { max-width: 280px; margin-bottom: 18px; }
  .auth-form { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .hero-top, .hero-foot { padding-left: 24px; padding-right: 24px; }
  .auth-card .brand-stack img { height: 36px; }
}
