/* =========================================================
   Baraem HMS — Login (Viewport-fit fluid layout)
   Target: one screen, 100% zoom, no crop, no vertical scroll
   Split: Hero 58% | Login 42%
   ========================================================= */

:root {
  /* Brand */
  --pink: #ff3d9a;
  --green: #2ecc2e;
  --purple: #5628fe;
  --yellow: #f9db47;
  --white: #ffffff;
  --bg: #f5f6f8;
  --bg-warm: #faf7f9;
  --text: #1c1c1e;
  --muted: #8e8e93;
  --line: rgba(28, 28, 30, 0.08);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 8px 24px rgba(28, 28, 30, 0.08);
  --shadow-card:
    0 24px 56px rgba(86, 40, 254, 0.08),
    0 12px 28px rgba(255, 61, 154, 0.08);

  /* Layout ratio */
  --hero-cols: 58%;
  --form-cols: 42%;

  /* 8px spacing system (with slight fluid range for density) */
  --space-1: 8px;   /* 1 unit */
  --space-2: 16px;  /* 2 */
  --space-3: 24px;  /* 3 */
  --space-4: 32px;  /* 4 */
  --space-5: 40px;  /* 5 */
  --space-6: 48px;  /* 6 */

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px; /* inputs */

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 18px;
  --fs-xl: 22px;      /* Arabic slogan — refined down */
  --fs-title: 28px;

  --input-h: 56px;
  --btn-h: 56px;
  --icon-box: 40px;
  --icon-svg: 20px;

  /* Form content column (~90% of card — wide, not tiny) */
  --form-col: 90%;

  --logo-hero: clamp(11rem, 22vmin, 18rem);
  --logo-card: clamp(6.5rem, 11vmin, 8.5rem);
  --card-max-w: min(92%, clamp(22rem, 34vw, 30rem));
  /* Balanced card padding — equal L/R, natural vertical breath */
  --card-pad-y: 32px;
  --card-pad-x: 32px;

  --font-en: "Poppins", system-ui, sans-serif;
  --font-ar: "Cairo", "Poppins", system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body.auth-layout {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: var(--fs-md);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.baraem-login {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* Language visibility */
.baraem-login .ar { display: none; }
.baraem-login .en { display: inline; }
.baraem-login[data-lang="ar"] .ar { display: inline; }
.baraem-login[data-lang="ar"] .en { display: none; }
.baraem-login[data-lang="ar"] h1 .ar,
.baraem-login[data-lang="ar"] h3 .ar,
.baraem-login[data-lang="ar"] p .ar,
.baraem-login[data-lang="ar"] strong .ar,
.baraem-login[data-lang="ar"] small .ar,
.baraem-login[data-lang="ar"] .field-label .ar,
.baraem-login[data-lang="ar"] .remember .ar,
.baraem-login[data-lang="ar"] .forgot .ar,
.baraem-login[data-lang="ar"] .btn-label .ar {
  display: block;
}
.baraem-login[data-lang="en"] h1 .en,
.baraem-login[data-lang="en"] h3 .en,
.baraem-login[data-lang="en"] p .en,
.baraem-login[data-lang="en"] strong .en,
.baraem-login[data-lang="en"] small .en,
.baraem-login[data-lang="en"] .field-label .en,
.baraem-login[data-lang="en"] .remember .en,
.baraem-login[data-lang="en"] .forgot .en,
.baraem-login[data-lang="en"] .btn-label .en {
  display: block;
}
.baraem-login[data-lang="ar"] {
  font-family: var(--font-ar);
}

/* Ambient */
.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(55vw 45vh at 86% 18%, rgba(255, 61, 154, 0.08), transparent 60%),
    radial-gradient(48vw 40vh at 94% 82%, rgba(46, 204, 46, 0.08), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, var(--bg-warm) 45%, #f3faf5 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.4;
  animation: floatY 12s ease-in-out infinite;
}

.orb-pink {
  width: clamp(7rem, 14vw, 14rem);
  height: clamp(7rem, 14vw, 14rem);
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 61, 154, 0.35), transparent 70%);
}

.orb-green {
  width: clamp(6rem, 12vw, 12rem);
  height: clamp(6rem, 12vw, 12rem);
  right: 28%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(46, 204, 46, 0.3), transparent 70%);
  animation-delay: -3s;
}

.orb-yellow {
  width: clamp(4rem, 8vw, 8rem);
  height: clamp(4rem, 8vw, 8rem);
  right: 42%;
  top: 38%;
  background: radial-gradient(circle, rgba(249, 219, 71, 0.35), transparent 70%);
  animation-delay: -6s;
}

.orb-purple {
  width: clamp(5rem, 10vw, 10rem);
  height: clamp(5rem, 10vw, 10rem);
  right: 4%;
  bottom: 28%;
  background: radial-gradient(circle, rgba(86, 40, 254, 0.18), transparent 70%);
  animation-delay: -8s;
}

.particle {
  position: absolute;
  width: clamp(0.3rem, 0.55vw, 0.55rem);
  height: clamp(0.3rem, 0.55vw, 0.55rem);
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.22;
  animation: drift 16s linear infinite;
}

.p1 { right: 18%; top: 22%; }
.p2 { right: 35%; top: 65%; background: var(--green); animation-delay: -4s; }
.p3 { right: 12%; top: 72%; background: var(--yellow); animation-delay: -7s; }
.p4 { right: 48%; top: 18%; background: var(--purple); animation-delay: -10s; }
.p5 { right: 26%; top: 42%; animation-delay: -2s; }

.soft-icon {
  position: absolute;
  width: clamp(1.6rem, 3vh, 2.4rem);
  height: clamp(1.6rem, 3vh, 2.4rem);
  color: rgba(255, 61, 154, 0.16);
  animation: floatY 10s ease-in-out infinite;
}

.soft-icon svg { width: 100%; height: 100%; }
.soft-icon-heart { right: 22%; top: 30%; }
.soft-icon-shield { right: 40%; bottom: 24%; color: rgba(46, 204, 46, 0.16); animation-delay: -5s; }

/* ========== GRID: 58 / 42 ========== */
.login-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--hero-cols) var(--form-cols);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ========== HERO ========== */
.hero-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  color: var(--text);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: slowKen 28s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Keep photo visible, but darken top-left for white logo contrast */
  background:
    radial-gradient(
      55% 48% at 8% 10%,
      rgba(12, 14, 18, 0.42) 0%,
      rgba(12, 14, 18, 0.18) 42%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.14) 42%,
      rgba(255, 250, 252, 0.32) 100%
    ),
    linear-gradient(105deg, rgba(255, 61, 154, 0.02), rgba(46, 204, 46, 0.02));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.brand-lockup {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand-lockup-vertical {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 12px 16px 12px 8px;
  margin-inline-start: -8px;
}

/* Soft local backdrop so white logo reads clearly over bright photography */
.brand-lockup-vertical::before {
  content: "";
  position: absolute;
  inset: -8px -12px -8px -4px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(
    ellipse at 35% 40%,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.16) 55%,
    transparent 78%
  );
  pointer-events: none;
}

.brand-logo-hero {
  display: block;
  position: relative;
  z-index: 1;
  width: var(--logo-hero);
  height: auto;
  max-width: 320px;
  flex-shrink: 0;
}

/* Official white monochrome — stronger soft depth for healthcare premium readability */
.brand-logo-hero-white {
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-ar {
  font-family: var(--font-ar);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--pink);
}

.brand-en {
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--green);
}

.hero-tagline {
  flex: 0 0 auto;
  max-width: min(38rem, 92%);
  margin-top: 16px;
  margin-bottom: 16px;
}

.hero-tagline .ar,
.hero-tagline .en {
  display: block !important;
}

.tagline-ar {
  margin: 0 0 12px;
  font-family: var(--font-ar);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--text);
}

.tagline-en {
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: rgba(28, 28, 30, 0.72);
}

.feature-cards {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  max-width: min(34rem, 100%);
  min-height: 0;
}

.feature-card {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-0.2vh);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1.2vh 2.6vh rgba(255, 61, 154, 0.12);
}

.feature-icon {
  flex: 0 0 var(--icon-box);
  width: var(--icon-box);
  height: var(--icon-box);
  border-radius: calc(var(--radius-sm) + 0.1rem);
  display: grid;
  place-items: center;
  color: var(--pink);
  background: linear-gradient(145deg, rgba(255, 61, 154, 0.14), rgba(255, 61, 154, 0.05));
}

.feature-icon-green {
  color: var(--green);
  background: linear-gradient(145deg, rgba(46, 204, 46, 0.16), rgba(46, 204, 46, 0.05));
}

.feature-icon-purple {
  color: var(--purple);
  background: linear-gradient(145deg, rgba(86, 40, 254, 0.14), rgba(86, 40, 254, 0.05));
}

.feature-icon svg {
  width: var(--icon-svg);
  height: var(--icon-svg);
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.35;
}

.hero-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: rgba(28, 28, 30, 0.55);
  font-weight: 500;
}

.hero-footer .dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.7;
}

/* ========== FORM PANEL ========== */
.form-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.glass-card {
  position: relative;
  width: var(--card-max-w);
  max-height: calc(100% - 8px);
  padding: var(--card-pad-y) var(--card-pad-x);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(28px) saturate(1.35);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* restore natural full-width flow */
  min-height: 0;
}

.glass-shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 140%;
  height: 18%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55), transparent 55%);
  transform: translateX(-12%) rotate(-2deg);
  pointer-events: none;
}

.lang-switch {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(245, 246, 248, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn.is-active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(28, 28, 30, 0.08);
}

.lang-btn:hover:not(.is-active) {
  color: var(--pink);
}

.card-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-logo {
  width: var(--logo-card);
  max-width: 160px;
  height: auto;
  display: block;
}

.card-header {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.card-header h1 {
  margin: 0 0 12px;
  font-size: var(--fs-title);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

/* Form stack — original order, 90% width, equal side margins */
.login-form {
  position: relative;
  z-index: 1;
  width: var(--form-col);
  margin-inline: auto;
  display: grid;
  gap: 16px;
  flex: 0 0 auto;
}

.field {
  width: 100%;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: rgba(28, 28, 30, 0.82);
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  inset-inline-start: 16px;
  width: var(--icon-svg);
  height: var(--icon-svg);
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.input-shell .form-control,
.input-shell .form-select {
  width: 100%;
  height: var(--input-h);
  min-height: var(--input-h);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  padding-inline-start: 48px;
  padding-inline-end: 48px;
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-shell .form-select {
  padding-inline-end: 40px;
  cursor: pointer;
}

.input-shell .form-control:focus,
.input-shell .form-select:focus {
  outline: none;
  border-color: rgba(255, 61, 154, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 61, 154, 0.12);
  background: #fff;
}

.toggle-password {
  position: absolute;
  inset-inline-end: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password:hover {
  color: var(--pink);
  background: rgba(255, 61, 154, 0.06);
}
.toggle-password svg { width: var(--icon-svg); height: var(--icon-svg); }
.toggle-password .eye-closed { display: none; }
.toggle-password[data-visible="true"] .eye-open { display: none; }
.toggle-password[data-visible="true"] .eye-closed { display: block; }

.field-error,
.validation-summary {
  display: block;
  margin-top: 8px;
  color: #c2185b;
  font-size: var(--fs-xs);
}

.validation-summary {
  width: 100%;
  background: rgba(255, 61, 154, 0.08);
  border: 1px solid rgba(255, 61, 154, 0.18);
  border-radius: 16px;
  padding: 12px 16px;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 0;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(28, 28, 30, 0.78);
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
}

.forgot {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.forgot:hover {
  color: var(--purple);
  text-decoration: underline;
}

.btn-signin {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  height: var(--btn-h);
  min-height: var(--btn-h);
  margin-top: 8px;
  margin-bottom: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(
    105deg,
    #ff3d9a 0%,
    #ff5aa8 28%,
    #7ed957 72%,
    #2ecc2e 100%
  );
  background-size: 140% 100%;
  background-position: 0% 50%;
  box-shadow: 0 12px 28px rgba(255, 61, 154, 0.28);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background-position 0.45s ease,
    filter 0.28s ease;
}

.btn-signin:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 16px 32px rgba(46, 204, 46, 0.22),
    0 10px 20px rgba(255, 61, 154, 0.2);
  filter: saturate(1.06);
}

.btn-signin:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 61, 154, 0.22);
}

.btn-signin .ripple-ink {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.65s linear;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.card-footer {
  position: relative;
  z-index: 1;
  width: var(--form-col);
  margin-inline: auto;
  margin-top: 24px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: var(--fw-medium);
  flex: 0 0 auto;
}

/* Animations */
.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.06s;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-1.2vw); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.6vh); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2vh); }
}

@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0.15; }
  50% { opacity: 0.3; }
  100% { transform: translateY(-6vh) translateX(1vw); opacity: 0.1; }
}

@keyframes slowKen {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.6%, 0); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---- Height-aware density (1366×768 / short desktops) ---- */
@media (max-height: 820px) {
  :root {
    --card-pad-y: 24px;
    --card-pad-x: 28px;
    --logo-card: clamp(5.5rem, 10vmin, 7.25rem);
    --fs-title: 24px;
    --input-h: 48px;
    --btn-h: 48px;
  }

  .feature-card p {
    display: none;
  }

  .login-form {
    gap: 12px;
  }
}

@media (max-height: 700px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .card-footer {
    margin-top: 12px;
  }
}

/* ---- Ultra-wide / 4K comfort ---- */
@media (min-width: 2200px) and (min-height: 1200px) {
  :root {
    --card-max-w: min(90%, 32rem);
    --logo-hero: clamp(13rem, 16vmin, 20rem);
    --logo-card: clamp(5.75rem, 9vmin, 7.5rem);
    --form-col: 90%;
  }
}

/* ---- Narrow / tablet stack (allow scroll only here) ---- */
@media (max-width: 1100px) {
  html,
  body.auth-layout {
    height: auto;
    overflow: auto;
  }

  .baraem-login {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .login-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }

  .form-panel {
    order: 1;
    height: auto;
    min-height: 100dvh;
    padding: 1.25rem 1rem;
  }

  .hero-panel {
    order: 2;
    height: auto;
    min-height: 52vh;
  }

  .hero-content {
    height: auto;
    gap: 1rem;
  }

  .brand-logo-hero {
    width: clamp(9rem, 42vw, 14rem);
    max-width: 260px;
  }

  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .feature-card p {
    display: none;
  }

  .feature-card {
    flex-direction: column;
    gap: 0.45rem;
  }

  .soft-icon,
  .particle {
    display: none;
  }
}

@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: row;
    align-items: center;
  }

  .feature-card p {
    display: block;
  }

  .form-panel {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
