/* ===================================================
   HRMS Login Page — Professional Styling
   =================================================== */

* {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Theme Toggle
   ========================= */

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(20deg);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* =========================
   Layout
   ========================= */

.login-container {
  position: relative;
  display: flex;
  flex-direction: row-reverse; /* USP cards LEFT, login form RIGHT (Tenant-style) */
  width: 100%;
  min-height: 100vh;
  /* Slate-navy base so the collage tiles + scrim read consistently across
     both panels. Theme-aware via the override below. */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #334155 100%);
  overflow: hidden;
}

/* ===== Page-wide scrapbook collage =====
   Six tiles spread across the entire viewport. Each has a varied size,
   slight rotation, and a soft drop-shadow for the layered scrapbook feel. */
.login-page-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.collage-tile {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: saturate(0.95);
}

/* Nine tiles arranged 3 / 3 / 3 across the entire page — top, middle,
   and bottom bands each carry three tiles. Sizes are viewport-percent;
   positions overlap slightly so there are no seams and the middle band
   gets equal density as the top and bottom. */

/* Tiles overlap horizontally so there are NO vertical gaps between the
   left, center, and right columns. Each tile ~36% wide; center tiles
   shifted toward the middle-right to merge with the right-column tiles. */

/* ── TOP ROW (left → center → right) ── */
.collage-tile--a {
  top: -4%; left: -3%;
  width: 35%; height: 33%;
  transform: rotate(-2.5deg);
  background-image: url('../brand/cards/card-lifecycle.jpg');
}
.collage-tile--b {
  top: 2%; left: 28%;
  width: 36%; height: 32%;
  transform: rotate(2deg);
  background-image: url('../brand/cards/card-attendance.jpg');
}
.collage-tile--c {
  top: -3%; right: -3%;
  width: 35%; height: 33%;
  transform: rotate(3deg);
  background-image: url('../brand/cards/card-leave.jpg');
}

/* ── MIDDLE ROW (left → center → right) ── */
.collage-tile--h {
  top: 32%; left: -3%;
  width: 33%; height: 31%;
  transform: rotate(2.5deg);
  background-image: url('../brand/cards/card-office.jpg');
}
.collage-tile--i {
  top: 34%; left: 26%;
  width: 38%; height: 31%;
  transform: rotate(-2deg);
  background-image: url('../brand/cards/card-handshake.jpg');
}
.collage-tile--g {
  top: 33%; right: -3%;
  width: 34%; height: 31%;
  transform: rotate(-3deg);
  background-image: url('../brand/cards/card-insights.jpg');
}

/* ── BOTTOM ROW (left → center → right) ── */
.collage-tile--e {
  bottom: -4%; left: -3%;
  width: 35%; height: 33%;
  transform: rotate(-3deg);
  background-image: url('../brand/cards/card-assets.jpg');
}
.collage-tile--f {
  bottom: -2%; left: 28%;
  width: 36%; height: 32%;
  transform: rotate(2.5deg);
  background-image: url('../brand/cards/card-approvals.jpg');
}
.collage-tile--d {
  bottom: -3%; right: -3%;
  width: 35%; height: 33%;
  transform: rotate(-2deg);
  background-image: url('../brand/cards/card-payroll.jpg');
}

/* Page-wide scrim — single dark veil across the whole page so the
   transparent USP cards on the left have contrast. The right-side login
   card has its own white surface so it pops naturally. */
.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 100%, rgba(56, 189, 248, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(8, 18, 37, 0.86) 100%);
  pointer-events: none;
}

/* =========================
   Login Panel (now on the right)
   ========================= */

.login-panel {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent; /* the page-wide collage shows through */
  position: relative;
  z-index: 2; /* above the page collage + scrim */
  min-width: 560px;
  max-width: 640px;
}

/* Make sure the form card and footer render above the collage + veil */
.login-form-wrap,
.login-footer {
  position: relative;
  z-index: 2;
}

/* Dark-mode form card: lift the surface so it reads against the dark panel
   and gains a clear elevation shadow */
[data-theme="dark"] .login-form-wrap {
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-form-wrap {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  animation: cardEntry 0.5s ease;
}

.login-form-wrap:hover {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

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

/* =========================
   Brand
   ========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(79, 70, 229, 0.18));
}

.brand:hover .brand-logo {
  transform: scale(1.08);
}

.brand-text strong {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-sep {
  color: var(--primary);
  font-weight: 400;
  margin: 0 4px;
  font-size: 16px;
}

.brand-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.brand-text span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* =========================
   Welcome Section
   ========================= */

.welcome {
  margin-bottom: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.welcome h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  /* Explicit indigo → cyan — matches the Vortex logo + application header brand */
  background: linear-gradient(135deg, #4F46E5 0%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Mobile-only "Sign In" heading — hidden on desktop, shown ≤900px */
.welcome-title--signin {
  display: none;
}

.welcome-tagline {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.welcome-divider {
  width: 56px;
  height: 2px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.55;
  border-radius: 999px;
}

.welcome-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

/* =========================
   Alert / Error
   ========================= */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease;
}

.alert-success,
.alert.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
}

.alert i {
  font-size: 16px;
  flex-shrink: 0;
}

/* =========================
   Form Fields
   ========================= */

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  background-color: var(--input-bg);
  padding: 13px 16px 13px 42px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.input-wrap input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.input-wrap input:hover {
  border-color: var(--primary);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background-color: var(--surface);
}

.input-wrap input:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--primary);
}

/* Password field */
.password-wrap .peek {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

.password-wrap .peek:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

/* =========================
   Form Options
   ========================= */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 24px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-secondary);
}

.remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* =========================
   Buttons
   ========================= */

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.2px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--primary));
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.submit-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(3px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Tenant Button */
.tenant-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tenant-btn i {
  color: var(--primary);
  font-size: 15px;
}

.tenant-btn:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* Tenant admin portal (separate from employee login flow) */
.tenant-admin-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tenant-admin-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tenant-admin-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tenant-btn--admin {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: 7px;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.tenant-btn--admin span {
  flex: 1;
  text-align: left;
}

.tenant-admin-external {
  color: currentColor;
  font-size: 13px;
}

.tenant-admin-help {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* =========================
   Footer / Copyright
   ========================= */

.login-footer {
  margin-top: 28px;
  text-align: center;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.powered-by strong {
  color: var(--text-primary);
  font-weight: 600;
}

.copyright {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* =========================
   Right Panel — Feature Panel
   ========================= */

.feature-panel {
  flex: 1.5; /* Bigger LEFT column (USP cards section) */
  background: transparent; /* the page-wide collage shows through */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2; /* above the page collage + scrim */
  min-width: 480px;
}

/* The scrapbook collage now lives at the page level (.login-page-collage)
   so it spans both panels. The feature-panel itself is transparent. */

.feature-panel-inner {
  position: relative;
  z-index: 3; /* above the collage tiles, scrim, and accent glow */
  padding: 44px 44px 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Top brand block (Vortex) ===== */
.feature-panel-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.feature-panel-brand-mark {
  width: clamp(52px, 4vw, 68px);
  height: clamp(52px, 4vw, 68px);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.45));
}

.feature-panel-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feature-panel-brand-name {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-panel-brand-tagline {
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.75);
}

/* ===== Hero header ===== */
.feature-header {
  margin-bottom: 28px;
}

.feature-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.subtitle {
  opacity: 0.78;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Feature Items */
.features-list {
  position: relative;
  z-index: 1;
  flex: 0 0 auto; /* natural height — explicit row size below */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 210px; /* tall enough to fully fit the longest 4-line descriptions */
  gap: 16px;
  min-height: 0;
  align-content: stretch;
}

/* Fully-transparent card — content reads directly on the panel collage.
   Only a soft border + faint inner highlight defines the tile bounds.
   Structure: icon at top-left, title + description grouped at the bottom
   (pushed down via margin-top: auto). */
.feature-item {
  --enter-delay: 0s; /* overridden by :nth-child below for staggered cascade */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  /* Primary card entry — smooth easeOutExpo with subtle scale + lift */
  animation: featureCardEntry 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--enter-delay) forwards;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Push the description text-block toward the bottom so cards balance when stretched */
.feature-item .feature-content {
  margin-top: auto;
}

/* Phase 2 — icon arrives ~200ms after card with a gentle overshoot */
.feature-item .feature-icon {
  opacity: 0;
  animation: featureIconReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1)
             calc(var(--enter-delay) + 0.22s) both;
}

/* Phase 3 — content text rises into place ~320ms after card */
.feature-item .feature-content {
  opacity: 0;
  animation: featureContentReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1)
             calc(var(--enter-delay) + 0.32s) both;
}

/* Push the description text-block toward the bottom so cards balance when stretched */
.feature-item .feature-content {
  margin-top: auto;
}

/* Modifier classes retained on the markup for semantic clarity, but no
   per-card photo is needed anymore — the imagery now lives behind the
   whole panel as a collage and the cards are pure frosted glass. */

/* Radial accent glow that fades in on hover */
.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 260px 180px at 50% 0%, rgba(96, 165, 250, 0.22) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(96, 165, 250, 0.22);
}

.feature-item:hover::before {
  opacity: 1;
}

/* Stagger entry cascade — each card's children inherit this delay so the
   card → icon → content sequence stays in sync per tile */
.feature-item:nth-child(1) { --enter-delay: 0.08s; }
.feature-item:nth-child(2) { --enter-delay: 0.16s; }
.feature-item:nth-child(3) { --enter-delay: 0.24s; }
.feature-item:nth-child(4) { --enter-delay: 0.32s; }
.feature-item:nth-child(5) { --enter-delay: 0.40s; }
.feature-item:nth-child(6) { --enter-delay: 0.48s; }

/* Responsive fall-backs */
@media (max-width: 1280px) {
  .features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .features-list { grid-template-columns: 1fr; }
  .feature-item { flex-direction: row; align-items: flex-start; }
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.32) 0%, rgba(129, 140, 248, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 6px 18px rgba(59, 130, 246, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.46) 0%, rgba(129, 140, 248, 0.34) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(96, 165, 250, 0.44);
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #ffffff;
}

.feature-content p {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.6;
  margin: 0;
}

/* ===== Trust band — stats + compliance badges =====
   Sits between the USP cards and the Maviontech credit. Pushed toward
   the bottom via margin-top: auto so it always anchors the lower third
   of the panel, regardless of card height. */

.trust-band {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 26px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  animation: featureContentReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.trust-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  /* Bluish-golden light wash — twin radials painted left-blue, right-gold,
     giving the strip its own atmosphere distinct from the rest of the panel. */
  background:
    radial-gradient(ellipse 45% 120% at 20% 50%, rgba(96, 165, 250, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 120% at 80% 50%, rgba(245, 196, 74, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
}

/* Hairline shimmer along the top + bottom edges */
.trust-stats::before,
.trust-stats::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(96, 165, 250, 0.30) 30%,
    rgba(245, 196, 74, 0.35) 70%,
    transparent 100%);
  pointer-events: none;
}
.trust-stats::before { top: 0; }
.trust-stats::after { bottom: 0; }

.trust-stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.trust-stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  /* Blue → gold ribbon gradient — sits on top of the strip's bluish-gold wash */
  background: linear-gradient(120deg,
    #60a5fa 0%,
    #93c5fd 35%,
    #fde68a 65%,
    #f5c44a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(245, 196, 74, 0.10);
}

/* Word-style stat values (e.g. "All-in-One", "Face-AI") — slightly smaller
   so the visual weight matches the numeric values next to them. */
.trust-stat-value--word {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.trust-stat-suffix {
  font-size: 14px;
  font-weight: 700;
  margin-left: 1px;
}

.trust-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Cool slate label so it doesn't compete with the warm value gradient */
  color: rgba(199, 210, 254, 0.72);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-badge i {
  font-size: 10px;
  color: #a5b4fc;
}

/* Feature Panel Footer — Maviontech credit */
.feature-panel-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-panel-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.feature-panel-credit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.55);
}

.feature-panel-credit-logo {
  height: 22px;
  width: auto;
  opacity: 0.95;
  filter: brightness(1.1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.feature-panel-credit-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.feature-panel-credit-line {
  margin: 0;
  font-size: 12px;
  opacity: 0.55;
  font-style: italic;
}

/* =========================
   Animations
   ========================= */

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

/* ===== Feature-card entry choreography =====
   1) Card itself — lifts and scales in
   2) Icon — pops with gentle overshoot
   3) Content — rises into place
   All three share the per-card --enter-delay so the cascade stays in sync. */

@keyframes featureCardEntry {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes featureIconReveal {
  0% {
    opacity: 0;
    transform: scale(0.55) translateY(6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes featureContentReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect prefers-reduced-motion — skip animations entirely for users
   who have requested reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-item,
  .feature-item .feature-icon,
  .feature-item .feature-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
  .feature-panel {
    min-width: 320px;
  }

  .feature-panel-inner {
    padding: 40px 32px;
  }
}

/* Mobile-only Vortex brand strip — sits above the login form on small
   screens so the stacked order reads:
     1. Vortex brand
     2. Login form
     3. USP cards / trust band / Maviontech credit */
.mobile-brand {
  display: none;
}

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    min-height: auto;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 4px;
    position: relative;
    z-index: 3; /* above the page collage */
    order: 0;
  }

  /* Hide the in-panel brand on mobile — the mobile-brand strip handles it */
  .feature-panel-brand {
    display: none !important;
  }

  .login-panel {
    order: 1;        /* sits right after the brand strip */
    min-width: auto;
    max-width: none;
  }

  .feature-panel {
    order: 2;        /* USP cards + trust band + credit come after the form */
    min-width: auto;
  }

  /* Mobile: drop the duplicate "Vortex" heading + tagline + divider,
     but keep the "Sign in to your workspace" sub above the form so the
     section still reads as the sign-in surface. */
  .welcome-title,
  .welcome-tagline,
  .welcome-divider {
    display: none;
  }
  .welcome {
    margin-bottom: 22px;
  }
  .welcome-sub {
    font-size: 16px;
    font-weight: 700;
  }

  .feature-panel-inner {
    padding: 32px 24px;
  }

  .features-list {
    gap: 12px;
  }

  .feature-item {
    padding: 12px;
  }

  .feature-header h2 {
    font-size: 22px;
  }

  .login-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 24px 16px;
  }

  .welcome h1 {
    font-size: 24px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 18px;
  }
}
