/* Sign-in (/login) and sign-up (/register) from the owner's approved mockups (donya-design/auth/mockup-desktop,
   mockup-phone): blue background with bokeh and sparkles, a frosted glass card, the chosen role's character
   (auth/partials/look-side.blade.php, auth-look.js). CSS only over the existing markup: the app reads and posts
   these pages (Section K), so locked ids, classes, names and texts stay; new elements come after the form.
   Animations move only transform and opacity; prefers-reduced-motion switches them all off (end of file).
   Loaded after auth-app.css, which forgot / reset password and verify email keep as they are. */

.auth-look {
  --al-deep: #1453C4;
  --al-mid: #2D7DE6;
  --al-sky: #7DBDF6;
  --al-pale: #CFE8FD;
  --al-ink: #0F172A;
  --al-muted: #475569;
  --al-line: rgba(148, 163, 184, .35);
  --al-primary: #1E88E5;
  --al-primary-dark: #1565C0;
  --al-from: 40px; /* the character enters from the end side */
}
[dir="rtl"] .auth-look { --al-from: -40px; }

/* ---- Page and background ---- */
body.auth-look.bg-light {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(100deg, var(--al-deep) 0%, var(--al-mid) 36%, var(--al-sky) 70%, var(--al-pale) 100%) !important;
  background-attachment: fixed !important;
  color: var(--al-ink);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[dir="rtl"] body.auth-look.bg-light {
  background: linear-gradient(260deg, var(--al-deep) 0%, var(--al-mid) 36%, var(--al-sky) 70%, var(--al-pale) 100%) !important;
  background-attachment: fixed !important;
}

.al-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.al-bokeh {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(125, 211, 252, .55) 0%, rgba(125, 211, 252, .25) 45%, rgba(125, 211, 252, 0) 70%);
  animation: alDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.al-bokeh--1 { width: 220px; height: 220px; top: 6%; inset-inline-start: 20%; --dx: 40px; --dy: 30px; animation-duration: 26s; }
.al-bokeh--2 { width: 170px; height: 170px; top: 24%; inset-inline-start: -2%; --dx: 30px; --dy: -24px; animation-duration: 21s;
  background: radial-gradient(circle, rgba(96, 165, 250, .6) 0%, rgba(96, 165, 250, .22) 45%, rgba(96, 165, 250, 0) 70%); }
.al-bokeh--3 { width: 200px; height: 200px; top: 26%; inset-inline-start: 9%; --dx: -26px; --dy: 34px; animation-duration: 29s;
  background: radial-gradient(circle, rgba(45, 212, 191, .55) 0%, rgba(45, 212, 191, .2) 45%, rgba(45, 212, 191, 0) 70%); }
.al-bokeh--4 { width: 260px; height: 260px; top: 54%; inset-inline-start: -6%; --dx: 34px; --dy: -30px; animation-duration: 25s;
  background: radial-gradient(circle, rgba(96, 165, 250, .5) 0%, rgba(96, 165, 250, .2) 45%, rgba(96, 165, 250, 0) 70%); }
.al-bokeh--5 { width: 180px; height: 180px; top: 54%; inset-inline-start: 42%; --dx: -30px; --dy: -20px; animation-duration: 23s;
  background: radial-gradient(circle, rgba(45, 212, 191, .5) 0%, rgba(45, 212, 191, .2) 45%, rgba(45, 212, 191, 0) 70%); }
.al-bokeh--6 { width: 120px; height: 120px; top: 28%; inset-inline-start: 43%; --dx: 20px; --dy: 26px; animation-duration: 19s; }
.al-bokeh--7 { width: 160px; height: 160px; top: 56%; inset-inline-end: -2%; --dx: -24px; --dy: 22px; animation-duration: 27s;
  background: radial-gradient(circle, rgba(45, 212, 191, .45) 0%, rgba(45, 212, 191, .18) 45%, rgba(45, 212, 191, 0) 70%); }
.al-bokeh--8 { width: 140px; height: 140px; top: 8%; inset-inline-start: 41%; --dx: -18px; --dy: 24px; animation-duration: 31s;
  background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, 0) 70%); }

.al-spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7);
  opacity: .25; animation: alTwinkle 3s ease-in-out infinite alternate;
}
.al-spark--1 { top: 12%; inset-inline-start: 8%; animation-delay: .2s; }
.al-spark--2 { top: 30%; inset-inline-start: 33%; animation-delay: 1.1s; width: 3px; height: 3px; }
.al-spark--3 { top: 44%; inset-inline-start: 14%; animation-delay: .6s; }
.al-spark--4 { top: 62%; inset-inline-start: 36%; animation-delay: 1.8s; width: 3px; height: 3px; }
.al-spark--5 { top: 78%; inset-inline-start: 22%; animation-delay: 2.4s; }
.al-spark--6 { top: 20%; inset-inline-start: 52%; animation-delay: .9s; width: 3px; height: 3px; }
.al-spark--7 { top: 38%; inset-inline-start: 58%; animation-delay: 1.5s; }
.al-spark--8 { top: 66%; inset-inline-start: 55%; animation-delay: .3s; width: 3px; height: 3px; }
.al-spark--9 { top: 16%; inset-inline-end: 12%; animation-delay: 2s; }
.al-spark--10 { top: 48%; inset-inline-end: 6%; animation-delay: 1.2s; width: 3px; height: 3px; }
.al-spark--11 { top: 82%; inset-inline-end: 18%; animation-delay: .5s; }
.al-spark--12 { top: 72%; inset-inline-start: 6%; animation-delay: 2.7s; width: 3px; height: 3px; }
.al-spark--13 { top: 8%; inset-inline-start: 62%; animation-delay: 1.6s; width: 3px; height: 3px; }
.al-spark--14 { top: 88%; inset-inline-start: 48%; animation-delay: .8s; }

/* ---- Layout: card at the start, character at the end (grid mirrors itself in RTL) ---- */
.auth-look .container-fluid.vh-100 { position: relative; z-index: 1; padding: 88px 40px 96px; }
.auth-look .container-fluid > .row {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 500px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(32px, 9vw, 150px);
  width: 100%; max-width: 1180px; margin: 0 auto;
}
.auth-look .container-fluid > .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
.auth-look .container-fluid > .row > .col-md-6 { grid-column: 1; grid-row: 1; }
.auth-look--signup .container-fluid > .row { grid-template-columns: minmax(0, 400px) minmax(0, 480px); align-items: start; }

/* «Back to Home» at the top start, the language pill at the top end, «Trusted by…» at the bottom start. */
.auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child { position: absolute; top: 28px; inset-inline-start: 40px; margin: 0 !important; }
.auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child a {
  color: #FFFFFF !important; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center;
  transition: opacity .2s ease, transform .2s ease;
}
.auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child a:hover { opacity: .85; transform: translateX(-2px); }
[dir="rtl"] .auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child a:hover { transform: translateX(2px); }

.al-lang {
  position: absolute; top: 24px; right: 40px; z-index: 2; /* physical sides: the pill itself is ltr (دری | EN) */
  display: inline-flex; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 18px rgba(20, 83, 196, .15);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; direction: ltr;
}
[dir="rtl"] .al-lang { right: auto; left: 40px; }
.al-lang__opt { color: var(--al-muted); text-decoration: none; padding: 2px 6px; border-radius: 8px; font-weight: 500; transition: color .2s ease; }
.al-lang__opt.is-on { color: var(--al-ink); font-weight: 700; }
.al-lang__opt:hover { color: var(--al-primary-dark); }
.al-lang__opt[lang="fa"] { font-family: 'Vazirmatn', system-ui, sans-serif; }
.al-lang__bar { color: #94A3B8; }

.al-trust { position: absolute; bottom: 28px; inset-inline-start: 40px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.35; }
.al-trust__text { max-width: 170px; }
.al-trust__faces { display: inline-flex; }
.al-trust__face {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFFFFF, #DCEBFB); color: var(--al-primary-dark); font-size: 12px;
  border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 3px 8px rgba(15, 23, 42, .15);
}
.al-trust__face + .al-trust__face { margin-inline-start: -8px; }

/* ---- The glass card ---- */
.auth-look .card.shadow {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(13, 60, 140, .28), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  animation: alCardIn .5s ease-out both;
}
.auth-look .card-body.p-5 { padding: 26px 24px 22px !important; }

.al-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.al-brand img { width: 34px; height: 34px; border-radius: 9px; }
.al-brand span { font-size: 22px; font-weight: 800; color: var(--al-ink); letter-spacing: -.01em; }
.auth-look .card-body > .text-center.mb-4 { text-align: start !important; margin-bottom: 16px !important; }
.auth-look .card-body > .text-center.mb-4 h2 { font-size: 28px; font-weight: 800; color: var(--al-ink); margin-bottom: 4px; letter-spacing: -.015em; }
.auth-look .card-body > .text-center.mb-4 p { font-size: 14.5px; margin: 0; }

/* «I am a:» and the four pills, 2×2 in the app's order (vendor, employee, customer, online seller: auth-app.css). */
.auth-look #signinForm > .form-label, .auth-look #signupForm > .form-label {
  text-align: start !important; font-size: 13.5px; font-weight: 500; color: var(--al-muted); margin-bottom: 8px !important;
}
.auth-look .role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.auth-look .role-option { position: relative; min-width: 0; }
.auth-look .role-option input { position: absolute; opacity: 0; pointer-events: none; }
.auth-look .role-label {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex !important; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 6px 10px !important; margin: 0;
  border: 1px solid var(--al-line) !important; border-radius: 999px !important;
  background: rgba(255, 255, 255, .92) !important; color: #334155 !important;
  font-size: 14px !important; font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .25s ease, color .2s ease;
}
.auth-look .role-label::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(90deg, var(--al-primary), var(--al-primary-dark));
  opacity: 0; transform: scale(.82);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.auth-look .role-label i { display: inline-block !important; font-size: 14px !important; margin: 0 !important; }
.auth-look .role-label span { overflow: hidden; text-overflow: ellipsis; }
.auth-look .role-label:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(21, 101, 192, .14); }
.auth-look .role-label:active { transform: scale(.97); }
.auth-look .role-option input:checked + .role-label {
  color: #FFFFFF !important; background: rgba(255, 255, 255, .92) !important; border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(21, 101, 192, .3);
}
.auth-look .role-option input:checked + .role-label::before { opacity: 1; transform: none; }
.auth-look .role-option input:focus-visible + .role-label { outline: 3px solid rgba(30, 136, 229, .35); outline-offset: 2px; }

/* ---- Fields: icon inside, white, radius 12 ---- */
.auth-look .card .form-control {
  min-height: 46px; border-radius: 12px !important; border: 1px solid var(--al-line);
  background-color: rgba(255, 255, 255, .95); color: var(--al-ink); font-size: 15px;
  padding-inline-start: 42px; background-repeat: no-repeat; background-size: 18px 18px; background-position: left 14px center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[dir="rtl"] .auth-look .card .form-control { background-position: right 14px center; }
.auth-look .card .form-control::placeholder { color: #94A3B8; }
.auth-look .card .form-control:focus { border-color: var(--al-primary); box-shadow: 0 0 0 3px rgba(30, 136, 229, .15); background-color: #FFFFFF; }
.auth-look .card .form-control.is-invalid { border-color: #DC2626; }
.auth-look #email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.auth-look #password, .auth-look #confirmPassword { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.auth-look #fullName { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-3.5 4.5-5 8-5s6.5 1.5 8 5'/%3E%3C/svg%3E"); }
.auth-look #shopName { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v9h16v-9'/%3E%3Cpath d='M3 10 5 4h14l2 6z'/%3E%3Cpath d='M10 19v-5h4v5'/%3E%3C/svg%3E"); }
.auth-look #sellerPhone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }

/* The eye sits inside the password field. */
.auth-look .card .input-group { position: relative; flex-wrap: nowrap; }
.auth-look .card .input-group > .form-control { padding-inline-end: 46px; }
.auth-look .card .input-group > .btn-outline-secondary {
  position: absolute; top: 3px; inset-inline-end: 4px; z-index: 5;
  width: 40px; min-height: 40px; padding: 0; border: 0 !important; border-radius: 10px !important;
  background: transparent !important; color: #94A3B8 !important;
  transition: transform .15s ease, color .2s ease;
}
.auth-look .card .input-group > .btn-outline-secondary:hover { color: var(--al-primary-dark) !important; }
.auth-look .card .input-group > .btn-outline-secondary:active { transform: scale(.92); }
.auth-look .card .input-group > .invalid-feedback { flex-basis: 100%; }

/* Sign-in: the labels read by screen readers only (the mockup shows placeholders); «Forgot password?» on the
   «Remember me» row. The link stays where it is in the HTML, inside the password block. */
.auth-look #signinForm > .mb-3 > .form-label,
.auth-look #signinForm > .mb-3 > .d-flex > .form-label {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.auth-look #signinForm > .mb-3 { margin-bottom: 12px !important; }
.auth-look #signinForm > .mb-3:has(#password) { position: relative; }
.auth-look #signinForm > .mb-3:has(#password) > .d-flex { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 2; line-height: 22px; }
.auth-look #signinForm > .mb-3:has(#password) > .d-flex a { font-size: 13.5px; font-weight: 500; }
.auth-look #signinForm > .form-check { min-height: 22px; line-height: 22px; margin-bottom: 16px !important; }
.auth-look .form-check-label { font-size: 13.5px !important; color: var(--al-muted) !important; }
.auth-look .form-check-input { border-color: #CBD5E1; }

/* Sign-up keeps its labels (more fields, with hints in the placeholders). */
.auth-look #signupForm .form-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.auth-look #signupForm > .mb-3 { margin-bottom: 12px !important; }
.auth-look #signupForm .progress { background: rgba(226, 232, 240, .8); border-radius: 999px; }

/* ---- Buttons ---- */
/* The app's AuthGradientButton (auth_gradient_button.dart): #1E88E5 → #1565C0, radius 14, shadow 0 8 16 #1565C040. */
.auth-look .card .btn-primary {
  position: relative; overflow: hidden; min-height: 48px; border: 0 !important; border-radius: 14px;
  background: linear-gradient(90deg, #1E88E5, #1565C0) !important; color: #FFFFFF;
  box-shadow: 0 8px 16px rgba(21, 101, 192, .25) !important; font-weight: 700;
  transition: transform .18s ease, box-shadow .25s ease;
}
.auth-look .card .btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 80%);
  opacity: 0; transform: translateX(-60%); transition: opacity .3s ease, transform .6s ease;
}
.auth-look .card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(21, 101, 192, .32) !important; }
.auth-look .card .btn-primary:hover::after { opacity: 1; transform: translateX(60%); }
.auth-look .card .btn-primary:active { transform: scale(.98); }

/* «Or continue with» as a line with the words in the middle. */
.auth-look #signinForm + .text-center, .auth-look #signupForm + .text-center { display: flex; align-items: center; gap: 12px; margin-bottom: 12px !important; }
.auth-look #signinForm + .text-center::before, .auth-look #signinForm + .text-center::after,
.auth-look #signupForm + .text-center::before, .auth-look #signupForm + .text-center::after { content: ""; flex: 1; height: 1px; background: var(--al-line); }
.auth-look #signinForm + .text-center span, .auth-look #signupForm + .text-center span { font-size: 13px; }

.auth-look .card a.btn-outline-secondary[href*="auth/google"] {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--al-line); color: var(--al-ink); font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .25s ease;
}
.auth-look .card a.btn-outline-secondary[href*="auth/google"]:hover { background: #FFFFFF; color: var(--al-ink); transform: translateY(-1px); box-shadow: 0 8px 16px rgba(21, 101, 192, .14); }
.auth-look .card a.btn-outline-secondary[href*="auth/google"]:active { transform: scale(.98); }
.auth-look .card a.btn-outline-secondary[href*="auth/google"] .fa-google { color: #4285F4; font-size: 17px; }
.auth-look .card-body > .row.g-2.mb-4 { margin-bottom: 14px !important; }
.auth-look .card-body > .text-center:last-child p { margin: 0; font-size: 13.5px; }
.auth-look .card-body > .text-center:last-child a { font-weight: 700; }
.auth-look .card .alert { border-radius: 14px; font-size: 13.5px; }
.auth-look .seller-sent { background: rgba(227, 242, 253, .9); }

/* ---- The character stage ---- */
.al-stage {
  grid-column: 2; grid-row: 1; position: relative;
  height: min(620px, calc(100vh - 150px)); min-height: 440px;
}
.auth-look--signup .al-stage { position: sticky; top: 40px; }
.al-stage__glow {
  position: absolute; inset: 10% 6% 4%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, .7) 0%, rgba(186, 230, 253, .45) 35%, rgba(125, 211, 252, .18) 55%, rgba(125, 211, 252, 0) 72%);
  opacity: .75; animation: alGlow 4s ease-in-out infinite alternate;
}
.al-char { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.al-char__float { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.al-char picture { display: contents; }
.al-char img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; filter: drop-shadow(0 22px 28px rgba(13, 60, 140, .22)); }
.al-char.is-on { opacity: 1; animation: alEnter .65s cubic-bezier(.2, .8, .2, 1) .15s both; }
.al-stage.is-ready .al-char.is-on { animation-delay: 0s; }
.al-char.is-on .al-char__float { animation: alFloat 5s ease-in-out .8s infinite alternate; }
.al-char.is-leaving { animation: alLeave .25s ease-in both; }

/* ---- Keyframes: transform and opacity only ---- */
@keyframes alCardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes alEnter {
  from { opacity: 0; transform: translate3d(var(--al-from), 24px, 0) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes alLeave {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(calc(var(--al-from) * -.75), 0, 0) scale(.97); }
}
@keyframes alFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes alGlow { from { opacity: .6; transform: scale(.97); } to { opacity: 1; transform: scale(1.02); } }
@keyframes alDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 20px), var(--dy, 20px), 0); } }
@keyframes alTwinkle { from { opacity: .15; transform: scale(.7); } to { opacity: .95; transform: scale(1.1); } }

/* ---- Narrower desktop ---- */
@media (max-width: 1100px) {
  .auth-look .container-fluid > .row { column-gap: 40px; grid-template-columns: minmax(0, 360px) minmax(0, 420px); }
}

/* ---- Phone and narrow windows (mockup-phone): the character in a band above the card, shown complete ---- */
@media (max-width: 767px) {
  .auth-look, [dir="rtl"] .auth-look { --al-from: 0px; }
  body.auth-look.bg-light, [dir="rtl"] body.auth-look.bg-light {
    background: linear-gradient(180deg, #3A8BEA 0%, #5FA6F1 34%, #9CCBF7 62%, #DCEEFD 100%) !important;
  }
  .auth-look .container-fluid.vh-100 { padding: 56px 16px 24px; align-items: flex-start !important; }
  .auth-look .container-fluid > .row,
  .auth-look--signup .container-fluid > .row { grid-template-columns: minmax(0, 440px); row-gap: 8px; }
  .auth-look .container-fluid > .row > .col-md-6 { grid-row: 2; }
  .al-stage, .auth-look--signup .al-stage { grid-column: 1; grid-row: 1; position: relative; top: auto; height: 260px; min-height: 0; }
  .al-stage.is-lite { height: 120px; }
  .auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child { top: 14px; inset-inline-start: 16px; }
  .auth-look .container-fluid > .row > .col-md-6 > .mb-4:first-child a { font-size: 14px; }
  .al-lang { top: 10px; right: 16px; padding: 4px 10px; font-size: 13px; }
  [dir="rtl"] .al-lang { right: auto; left: 16px; }
  .al-trust { display: none; }
  .auth-look .card-body > .text-center.mb-4 { text-align: center !important; }
  .auth-look .card-body > .text-center.mb-4 h2 { font-size: 24px; }
  .al-brand { justify-content: center; margin-bottom: 8px; }
  .al-brand span { font-size: 20px; }
  .auth-look .card-body.p-5 { padding: 20px 16px 18px !important; }
  .auth-look .role-label { font-size: 13px !important; min-height: 38px; }
  /* Lighter motion: fewer bokeh, no drift, a shorter entrance and a smaller float. */
  .al-bokeh--3, .al-bokeh--5, .al-bokeh--6, .al-bokeh--7, .al-bokeh--8,
  .al-spark--2, .al-spark--4, .al-spark--6, .al-spark--8, .al-spark--10, .al-spark--12, .al-spark--13 { display: none; }
  .al-bokeh { animation: none; }
  .al-char.is-on { animation-duration: .4s; }
  .al-char.is-on .al-char__float { animation-name: alFloatSmall; }
  @keyframes alFloatSmall { from { transform: translateY(0); } to { transform: translateY(-4px); } }
}

/* ---- No movement: everything shows in its final state, the character changes at once ---- */
@media (prefers-reduced-motion: reduce) {
  .auth-look *, .auth-look *::before, .auth-look *::after { animation: none !important; transition: none !important; }
  .auth-look .al-char.is-on { opacity: 1; }
  .auth-look .al-char.is-leaving { opacity: 0; }
}
