/* OfeliA login hero V2 — visual-only, approved 2026-11-07.
   The real login/register forms remain in PHP/HTML; only the illustration is a raster asset. */

@media (min-width: 821px) {
  .auth-shell {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    min-height: 100dvh;
    align-items: stretch;
  }
  .auth-visual {
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    background-color: #071e56;
    /* Show the COMPLETE illustration: no side cropping on wide/tall monitors. */
    background-image:
      url('/assets/img/login/ofelia-robot-hero-v2.webp'),
      radial-gradient(ellipse at 52% 55%, #1552ae 0%, #0b2866 52%, #071945 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: contain, cover;
    background-position: center center, center center;
    overflow: hidden;
  }
  .auth-panel {
    min-width: 0;
    min-height: 100dvh;
    padding: clamp(20px, 3.5vw, 56px);
    background: radial-gradient(circle at 100% 0,rgba(67,89,171,.05),transparent 48%),#f8f5f0;
  }
  .auth-card {
    width: min(500px,100%);
    border-radius: 32px;
    padding: clamp(27px, 3.1vw, 42px);
    background: rgba(255,253,250,.97);
  }
}

/* No marketing headline or promotional cards — the robot fills the left panel. */
.auth-mode-login .auth-card-copy { display: none; }
.auth-mode-login .auth-brand-centered { margin-bottom: 29px; }
.auth-mode-login .auth-mode-switch { margin-bottom: 29px; }
.auth-mode-login .auth-form { gap: 19px; }
.auth-mode-login .auth-submit { margin-top: 7px; }
.auth-panel .auth-brand-centered .ofelia-brand img { width: 57px; height: 57px; }
.auth-panel .auth-brand-centered .ofelia-brand strong { font-size: 29px; }
.auth-panel .auth-brand-centered .ofelia-brand small { font-size: 9px; }
.auth-panel .auth-field { font-size: 12px; gap: 7px; }
.auth-panel .auth-input-wrap { background:#e9f0fe; border-color:#d9e2ef; min-height: 56px; }
.auth-panel .auth-input-wrap input { min-height: 54px; font-size: 15px; }
.auth-panel .auth-mode-switch a { font-size: 12px; }
.auth-panel .auth-meta-row { font-size: 11px; }
.auth-panel .auth-submit { min-height: 57px; font-size: 15px; }
.auth-panel .auth-security { font-size: 11px; margin-top: 22px; }
.auth-panel .auth-legal { font-size: 9px; }
.auth-mode-register .auth-card-copy { margin-bottom: 17px; }
.auth-mode-register .auth-card-copy h2 { font-size: 29px; }

@media (min-width: 821px) and (max-height: 760px) {
  .auth-panel { padding-top: 14px; padding-bottom: 14px; }
  .auth-card { padding-top: 22px; padding-bottom: 22px; }
  .auth-mode-login .auth-brand-centered { margin-bottom: 15px; }
  .auth-mode-login .auth-mode-switch { margin-bottom: 20px; }
  .auth-mode-login .auth-form { gap: 13px; }
  .auth-panel .auth-security { margin-top: 15px; }
  .auth-visual { min-height: 100dvh; }
}

/* Tablet in portrait and phones: picture becomes a short hero banner.
   Keep complete, usable forms and allow native vertical scroll. */
@media (max-width: 820px) {
  .auth-shell { display: flex; flex-direction: column; min-height: 100dvh; }
  .auth-visual {
    display: block;
    flex: none;
    position: relative;
    width: 100%;
    height: clamp(250px, 55vw, 440px);
    background-color: #091f59;
    background-image:
      url('/assets/img/login/ofelia-robot-hero-v2.webp'),
      radial-gradient(ellipse at center, #15459d 0%, #081c50 75%);
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: contain, cover;
  }
  .auth-panel {
    min-height: 0;
    flex: 1;
    align-items: flex-start;
    padding: 18px 18px max(24px,env(safe-area-inset-bottom));
  }
  .auth-card { margin: 0 auto; width: min(510px,100%); }
  .auth-mode-login .auth-card-copy { display: none; }
}
@media (max-width: 520px) {
  .auth-visual {
    height: clamp(225px, 76vw, 350px);
    background-size: contain, cover;
    background-position: center center, center center;
  }
  .auth-panel { padding: 12px 12px max(16px,env(safe-area-inset-bottom)); }
  .auth-card { border-radius: 24px; padding: 20px 17px; }
  .auth-panel .auth-brand-centered .ofelia-brand img { width: 46px; height: 46px; }
  .auth-panel .auth-brand-centered .ofelia-brand strong { font-size: 23px; }
  .auth-mode-login .auth-brand-centered { margin-bottom: 14px; }
  .auth-mode-login .auth-mode-switch { margin-bottom: 19px; }
  .auth-mode-login .auth-form { gap: 13px; }
  .auth-panel .auth-field { font-size: 11px; }
  .auth-panel .auth-input-wrap { min-height: 48px; }
  .auth-panel .auth-input-wrap input { min-height: 47px; font-size: 14px; }
  .auth-panel .auth-submit { min-height: 52px; }
  .auth-panel .auth-security { font-size: 10px; margin-top: 16px; }
  .auth-panel .auth-legal { font-size: 8px; }
}
@media (max-width: 360px) { .auth-visual { height: clamp(220px, 76vw, 280px); } }
