:root {
  --dw-violet: #452F73;
  --dw-violet-deep: #34235A;
  --dw-violet-ink: #241839;
  --dw-green: #51BF68;
  --dw-green-hover: #45AC5B;
  --dw-green-dark: #2B7A42;
  --dw-green-ink: #0F2A17;
  --dw-yellow: #FFCB31;
  --dw-gray: #F7F7F9;
  --dw-line: #E8E6EE;
  --dw-line-2: #DCD8E6;
  --dw-muted: #5C5669;
  --dw-muted-2: #8B8698;
  --dw-danger: #C2334D;
  --dw-radius: 22px;
  --dw-radius-sm: 12px;
  --dw-font-ar: "Cairo", "Poppins", system-ui, sans-serif;
  --dw-font-en: "Poppins", "Cairo", system-ui, sans-serif;
}

.dw-font { font-family: var(--dw-font-en); }
html[lang^="ar"] .dw-font, [dir="rtl"] .dw-font { font-family: var(--dw-font-ar); }
.dw-font.dw-font *:not(i):not([class*="tio-"]):not([class*="fa-"]) { font-family: inherit; }

/* ---------- auth stage (login / reset / otp) ---------- */
body.dw-auth-body { margin: 0; min-height: 100vh; background: var(--dw-violet-ink); color: var(--dw-violet); -webkit-font-smoothing: antialiased; }
.dw-stage { --dw-road-bottom: 7vh; --dw-road-h: 54px; position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 16px calc(var(--dw-road-bottom) + var(--dw-road-h) + 64px); }
.dw-stage__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dw-stage__tag { margin: 0; max-width: 34ch; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.7; }
.dw-stage__main { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; }
.dw-stage__copy { position: fixed; z-index: 1; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.dw-lang { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1; }
.dw-lang:hover, .dw-lang:focus { color: var(--dw-yellow); border-color: var(--dw-yellow); text-decoration: none; }

/* ---------- delivery scene ---------- */
.dw-scene { --dw-road-bottom: 7vh; --dw-road-h: 54px; --dw-truck-w: 300px; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; direction: ltr; background: radial-gradient(120% 80% at 50% 18%, #5B3F93 0%, #452F73 42%, #2B1C4A 100%); }
.dw-pattern { position: absolute; inset: 0; pointer-events: none; background-image: url("../../../front/img/dowsa-pattern-tile.png"); background-size: 209px 128px; opacity: .12; }
.dw-scene__glow { position: absolute; left: 50%; top: 32%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; background: radial-gradient(circle, rgba(81, 191, 104, .22), rgba(81, 191, 104, 0) 62%); }

.dw-road { position: absolute; left: 0; right: 0; bottom: var(--dw-road-bottom); height: var(--dw-road-h); background: linear-gradient(#2A1B45, #21153A); border-top: 2px solid rgba(255, 255, 255, .08); border-bottom: 2px solid rgba(255, 255, 255, .06); box-shadow: 0 -18px 40px rgba(20, 12, 36, .35); }
.dw-road__lane { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, rgba(255, 203, 49, .75) 0 34px, transparent 34px 78px); }

.dw-cart__p { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; }
.dw-truck { position: absolute; left: 50%; bottom: calc(var(--dw-road-bottom) + var(--dw-road-h) * .45); width: var(--dw-truck-w); aspect-ratio: 622 / 159; margin-left: calc(var(--dw-truck-w) / -2); }
.dw-truck__body { position: absolute; inset: 0; transform-origin: 49% 95%; }
.dw-truck__streak { position: absolute; right: 64%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(81, 191, 104, 0), rgba(81, 191, 104, .9)); }
.dw-truck__streak--1 { top: 18%; width: 46%; }
.dw-truck__streak--2 { top: 42%; width: 70%; }
.dw-truck__streak--3 { top: 66%; width: 36%; }

.dw-mini { position: absolute; left: 0; bottom: calc(var(--dw-road-bottom) + var(--dw-road-h) * .62); width: 150px; aspect-ratio: 622 / 159; opacity: 0; filter: saturate(.7); }

.dw-parcel { --dw-parcel-w: 74px; position: absolute; left: 50%; bottom: calc(var(--dw-road-bottom) + var(--dw-road-h) * .5); width: var(--dw-parcel-w); height: calc(var(--dw-parcel-w) * .72); margin-left: calc(var(--dw-parcel-w) / -2); }
.dw-parcel__box { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #F2B91C 0 50%, #FFCB31 50% 100%); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08), 0 10px 18px rgba(20, 12, 36, .45); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dw-parcel__box::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 14%; margin-left: -7%; background: var(--dw-violet); opacity: .85; }
.dw-parcel__box img { position: relative; width: 44%; height: auto; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)); }
.dw-parcel__flap { position: absolute; top: -12%; width: 50%; height: 16%; background: #E9AE12; border-radius: 3px 3px 0 0; }
.dw-parcel__flap--l { left: 0; transform-origin: 0 100%; }
.dw-parcel__flap--r { right: 0; transform-origin: 100% 100%; }
.dw-parcel__light { position: absolute; left: 50%; bottom: 96%; width: 340%; height: 520%; margin-left: -170%; transform-origin: 50% 100%; background: linear-gradient(to top, rgba(255, 203, 49, .55), rgba(81, 191, 104, .18) 55%, rgba(81, 191, 104, 0)); clip-path: polygon(38% 100%, 62% 100%, 100% 0, 0 0); filter: blur(4px); opacity: 0; }

@media (min-width: 768px) {
  .dw-stage, .dw-scene { --dw-road-bottom: 9vh; --dw-road-h: 70px; }
  .dw-scene { --dw-truck-w: 440px; }
  .dw-parcel { --dw-parcel-w: 96px; }
  .dw-mini { width: 190px; }
  .dw-stage { gap: 22px; padding-top: 34px; }
  .dw-stage__tag { font-size: 15px; }
}

.dw-card { width: 100%; max-width: 440px; background: #FFFFFF; border-radius: var(--dw-radius); box-shadow: 0 30px 80px rgba(20, 12, 36, .45), 0 0 0 1px rgba(255, 255, 255, .06); padding: 28px 22px; }
@media (min-width: 768px) {
  .dw-card { padding: 34px 34px 30px; }
  .dw-card__title { font-size: 30px; }
}

.dw-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(81, 191, 104, .14); color: var(--dw-green-dark); font-size: 26px; margin-bottom: 16px; }
.dw-card__eyebrow { display: inline-block; color: var(--dw-green-dark); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.dw-card__title { margin: 8px 0 0; font-size: 26px; font-weight: 900; color: var(--dw-violet); line-height: 1.3; }
.dw-card__sub { margin: 6px 0 24px; color: var(--dw-muted); font-size: 15px; line-height: 1.7; }

.dw-auth-body .input-label { display: block; font-size: 14px; font-weight: 700; color: var(--dw-violet); margin-bottom: 7px; }
.dw-auth-body .form-control,
.dw-auth-body .form-control-lg { height: auto; padding: 12px 14px; border: 1px solid var(--dw-line-2); border-radius: var(--dw-radius-sm); font-size: 15px; color: var(--dw-violet); background: #FFFFFF; box-shadow: none; }
.dw-auth-body .form-control::placeholder { color: var(--dw-muted-2); }
.dw-auth-body .form-control:focus { border-color: var(--dw-violet); box-shadow: 0 0 0 3px rgba(69, 47, 115, .12); }
.dw-auth-body .input-group-merge .form-control { border-radius: var(--dw-radius-sm); }
.dw-auth-body .input-group-merge .input-group-append .input-group-text { border: 0; background: transparent; color: var(--dw-muted-2); }
.dw-auth-body .custom-control-label { color: var(--dw-muted); font-size: 14px; }
.dw-auth-body .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--dw-green); border-color: var(--dw-green); }
.dw-auth-body .dw-link { color: var(--dw-violet); font-weight: 700; font-size: 14px; cursor: pointer; background: none; border: 0; padding: 0; }
.dw-auth-body .dw-link:hover { color: var(--dw-green-dark); }

.dw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 26px; border: 1px solid transparent; border-radius: 999px; background: var(--dw-green); color: var(--dw-green-ink); font-weight: 800; font-size: 15.5px; box-shadow: 0 10px 26px rgba(81, 191, 104, .3); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; cursor: pointer; }
.dw-btn:hover, .dw-btn:focus { background: var(--dw-green-hover); color: var(--dw-green-ink); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(81, 191, 104, .42); text-decoration: none; }
.dw-btn--violet { background: var(--dw-violet); color: #FFFFFF; box-shadow: 0 10px 26px rgba(69, 47, 115, .22); }
.dw-btn--violet:hover, .dw-btn--violet:focus { background: var(--dw-violet-deep); color: var(--dw-yellow); box-shadow: 0 14px 32px rgba(69, 47, 115, .3); }

.dw-auth-body :focus-visible { outline: 3px solid var(--dw-yellow); outline-offset: 3px; }
.dw-auth-body ::selection { background: var(--dw-yellow); color: var(--dw-violet); }

.dw-auth-body .modal-content { border: 0; border-radius: var(--dw-radius); box-shadow: 0 24px 60px rgba(36, 24, 57, .22); }
.dw-auth-body .forget-pass-content { text-align: center; padding: 0 8px 12px; }
.dw-auth-body .forget-pass-content img { max-width: 120px; margin-bottom: 16px; }
.dw-auth-body .forget-pass-content h4 { font-size: 20px; font-weight: 900; color: var(--dw-violet); }
.dw-auth-body .forget-pass-content p { color: var(--dw-muted); font-size: 15px; line-height: 1.7; }

.dw-auth-body .otp-field { width: 48px; height: 54px; text-align: center; font-size: 20px; font-weight: 700; background: #FFFFFF; border: 1px solid var(--dw-line-2); border-radius: var(--dw-radius-sm); color: var(--dw-violet); }

/* ---------- registration pages (vendor / rider) ---------- */
body.dw-reg { --base-1: #51BF68; --base-rgb: 81, 191, 104; --base-2: #45AC5B; --base-rgb-2: 69, 172, 91; --primary-clr: #452F73; --title-clr: #452F73; --title-rgb: 69, 47, 115; --body-clr: #5C5669; --base-10: #FFCB31; --base-11: #FFCB31; --header-bg: #F7F7F9; background: var(--dw-gray); color: var(--dw-violet); }
body.dw-reg { font-family: var(--dw-font-en); }
html[lang^="ar"] body.dw-reg { font-family: var(--dw-font-ar); }
body.dw-reg.dw-reg *:not(i):not([class*="tio-"]):not([class*="fa-"]):not([class*="iti__"]) { font-family: inherit; }

.dw-reg-nav { position: relative; overflow: hidden; background: var(--dw-violet); color: #FFFFFF; }
.dw-reg-nav .dw-pattern { opacity: .1; }
.dw-reg-nav__in { position: relative; max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dw-reg-nav__logo img { display: block; height: 34px; width: auto; }
.dw-reg-nav__links { display: flex; align-items: center; gap: 8px; }
.dw-reg-nav__link { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dw-reg-nav__link:hover { color: var(--dw-yellow); border-color: var(--dw-yellow); text-decoration: none; }
.dw-reg-nav__link--ghost { border-color: transparent; color: rgba(255, 255, 255, .85); display: none; }
.dw-reg-nav__link--lang { min-width: 42px; justify-content: center; padding-inline: 12px; }

.dw-reg-hero { position: relative; overflow: hidden; background: var(--dw-violet); color: #FFFFFF; padding: 8px 20px 140px; text-align: center; }
.dw-reg-hero .dw-pattern { opacity: .1; }
.dw-reg-hero__title { position: relative; z-index: 1; margin: 10px 0 0; font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.3; color: #FFFFFF; }
.dw-reg-hero__lead { position: relative; z-index: 1; margin: 10px auto 0; max-width: 52ch; color: rgba(255, 255, 255, .78); font-size: 15.5px; line-height: 1.75; }

.dw-reg-main { position: relative; margin-top: -60px; padding-bottom: 56px; }
.dw-reg-main > section { padding-top: 0 !important; }
.dw-reg-main .section-header { display: none; }
.dw-reg-main .card, .dw-reg-main .__card { border: 1px solid var(--dw-line); border-radius: var(--dw-radius); box-shadow: 0 14px 40px rgba(51, 37, 75, .06); background: #FFFFFF; }
.dw-reg-main .card-header { background: transparent; border-bottom: 1px solid var(--dw-line); }
.dw-reg-main .card-title, .dw-reg-main .card-header h5, .dw-reg-main .card-header h4 { color: var(--dw-violet); font-weight: 800; }
.dw-reg-main label, .dw-reg-main .input-label, .dw-reg-main .form-label { color: var(--dw-violet); font-weight: 700; }
.dw-reg-main .form-control, .dw-reg-main .custom-select, .dw-reg-main .select2-container .select2-selection { border: 1px solid var(--dw-line-2); border-radius: var(--dw-radius-sm); color: var(--dw-violet); min-height: 46px; box-shadow: none; }
.dw-reg-main .form-control:focus { border-color: var(--dw-violet); box-shadow: 0 0 0 3px rgba(69, 47, 115, .12); }
.dw-reg-main .form-control::placeholder { color: var(--dw-muted-2); }
.dw-reg-main .btn--primary, .dw-reg-main .cmn--btn, .dw-reg-main .btn-primary, .dw-reg-main button[type="submit"] { background: var(--dw-green); border-color: var(--dw-green); color: var(--dw-green-ink); border-radius: 999px; font-weight: 800; padding-inline: 28px; box-shadow: 0 10px 26px rgba(81, 191, 104, .3); }
.dw-reg-main .btn--primary:hover, .dw-reg-main .cmn--btn:hover, .dw-reg-main .btn-primary:hover, .dw-reg-main button[type="submit"]:hover { background: var(--dw-green-hover); border-color: var(--dw-green-hover); color: var(--dw-green-ink); }
.dw-reg-main .btn--reset, .dw-reg-main button[type="reset"] { border-radius: 999px; background: #FFFFFF; border: 1px solid var(--dw-line-2); color: var(--dw-violet); font-weight: 700; padding-inline: 24px; }
.dw-reg-main .text--base, .dw-reg-main a { color: var(--dw-green-dark); }
.dw-reg-main .nav-tabs .nav-link.active, .dw-reg-main .lang_link.active { color: var(--dw-violet); border-color: var(--dw-green); }

.dw-reg-foot { background: var(--dw-violet-ink); color: rgba(255, 255, 255, .7); }
.dw-reg-foot__in { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.dw-reg-foot__in img { height: 28px; width: auto; display: block; }
.dw-reg-foot a { color: rgba(255, 255, 255, .85); }
.dw-reg-foot a:hover { color: var(--dw-yellow); text-decoration: none; }
.dw-reg-foot__links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (min-width: 768px) {
  .dw-reg-nav__in { padding: 18px 24px; }
  .dw-reg-nav__logo img { height: 40px; }
  .dw-reg-nav__link--ghost { display: inline-flex; }
}
.dw-reg a:hover, .dw-reg a:focus, .dw-reg-nav a, .dw-reg-foot a { text-decoration: none; }
.dw-reg-main .text-info, .dw-reg-main .text-primary, .dw-reg-main .text--primary { color: var(--dw-violet) !important; }

/* ---------- motion: assembling wordmark ---------- */
.dw-logo { --dwl-t: 0s; position: relative; display: block; width: 170px; aspect-ratio: 622 / 159; direction: ltr; }
.dw-logo--sm { width: 132px; }
.dw-logo__p { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; }
.dw-logo__p--d, .dw-logo__p--o { animation: dwl-from-left .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.dw-logo__p--d { animation-delay: calc(var(--dwl-t) + 1.05s); }
.dw-logo__p--o { animation-delay: calc(var(--dwl-t) + 1.15s); }
.dw-logo__p--s, .dw-logo__p--a { animation: dwl-from-right .55s cubic-bezier(.2, .9, .25, 1.15) both; }
.dw-logo__p--s { animation-delay: calc(var(--dwl-t) + 1.25s); }
.dw-logo__p--a { animation-delay: calc(var(--dwl-t) + 1.35s); }
.dw-logo__p--w { transform-origin: 49% 38%; animation: dwl-w-draw .75s cubic-bezier(.3, .8, .3, 1) calc(var(--dwl-t) + .3s) both, dwl-cart-hop 7s ease-in-out calc(var(--dwl-t) + 3.5s) infinite; }
.dw-logo__p--wl, .dw-logo__p--wr { animation: dwl-wheel-drop .6s cubic-bezier(.3, 1.4, .5, 1) both, dwl-wheel-hop 7s ease-in-out infinite; }
.dw-logo__p--wl { animation-delay: calc(var(--dwl-t) + .8s), calc(var(--dwl-t) + 3.5s); transform-origin: 45% 87%; }
.dw-logo__p--wr { animation-delay: calc(var(--dwl-t) + .88s), calc(var(--dwl-t) + 3.5s); transform-origin: 55% 87%; }
.dw-logo__p--tm { animation: dwl-pop .35s ease-out calc(var(--dwl-t) + 1.65s) both; transform-origin: 97% 68%; }

.dw-logo__bar { position: absolute; top: 4.4%; height: 7%; width: 5.4%; border-radius: 2px; background: var(--dw-green); opacity: 0; }
.dw-logo__bar--l { left: 35.2%; animation: dwl-bar-l .7s cubic-bezier(.2, .8, .3, 1) var(--dwl-t) both; }
.dw-logo__bar--r { left: 58.1%; animation: dwl-bar-r .7s cubic-bezier(.2, .8, .3, 1) calc(var(--dwl-t) + .08s) both; }

.dw-logo__streak { position: absolute; left: -22%; height: 3px; width: 34%; border-radius: 3px; background: linear-gradient(90deg, rgba(81, 191, 104, 0), var(--dw-green)); transform-origin: 100% 50%; opacity: 0; animation: dwl-streak .6s ease-out both; }
.dw-logo__streak--1 { top: 26%; animation-delay: calc(var(--dwl-t) + 1s); }
.dw-logo__streak--2 { top: 46%; width: 44%; animation-delay: calc(var(--dwl-t) + 1.06s); }
.dw-logo__streak--3 { top: 66%; width: 26%; animation-delay: calc(var(--dwl-t) + 1.12s); }

.dw-logo__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 130% 0; -webkit-mask: url("../../../front/img/dowsa-logo-en-light.png") center / 100% 100% no-repeat; mask: url("../../../front/img/dowsa-logo-en-light.png") center / 100% 100% no-repeat; animation: dwl-shine 1s ease-in-out calc(var(--dwl-t) + 1.8s) both; }

@keyframes dwl-bar-l { 0% { transform: translateX(-420%); opacity: 0; } 45% { opacity: 1; } 70% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes dwl-bar-r { 0% { transform: translateX(420%); opacity: 0; } 45% { opacity: 1; } 70% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes dwl-w-draw {
  0% { clip-path: inset(0 64.8% 0 0); transform: scale(1.45) rotate(-7deg); opacity: 0; }
  12% { opacity: 1; }
  55% { clip-path: inset(0 0 0 0); transform: scale(1.45) rotate(0); }
  80% { transform: scale(.94); }
  100% { clip-path: inset(0 0 0 0); transform: scale(1); opacity: 1; }
}
@keyframes dwl-wheel-drop { 0% { transform: translateY(-95%) scale(.4); opacity: 0; } 55% { transform: translateY(4%) scale(1.15, .8); opacity: 1; } 78% { transform: translateY(-4%) scale(.95, 1.08); } 100% { transform: none; opacity: 1; } }
@keyframes dwl-from-left { 0% { transform: translateX(-55%) skewX(-14deg); opacity: 0; filter: blur(6px); } 70% { transform: translateX(1.5%) skewX(4deg); opacity: 1; filter: blur(0); } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes dwl-from-right { 0% { transform: translateX(55%) skewX(14deg); opacity: 0; filter: blur(6px); } 70% { transform: translateX(-1.5%) skewX(-4deg); opacity: 1; filter: blur(0); } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes dwl-streak { 0% { transform: translateX(-40%) scaleX(0); opacity: 0; } 40% { transform: translateX(20%) scaleX(1); opacity: 1; } 100% { transform: translateX(70%) scaleX(.2); opacity: 0; } }
@keyframes dwl-pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dwl-shine { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes dwl-cart-hop { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-7%) rotate(-4deg); } 94% { transform: translateY(1.5%) rotate(1deg); } 97% { transform: none; } }
@keyframes dwl-wheel-hop { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-4%); } 94% { transform: translateY(1%) scale(1.1, .9); } 97% { transform: none; } }

/* ---------- motion: delivery scene ---------- */
@keyframes dw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dw-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dw-pattern-drift { from { background-position: 0 0; } to { background-position: -209px -128px; } }
@keyframes dw-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes dw-glow { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes dw-lane { from { background-position: 0 0; } to { background-position: -78px 0; } }
@keyframes dw-truck-drive {
  0% { transform: translateX(-75vw); animation-timing-function: cubic-bezier(.15, .7, .3, 1); }
  36% { transform: translateX(0); }
  62% { transform: translateX(0); animation-timing-function: cubic-bezier(.55, 0, .85, .35); }
  100% { transform: translateX(80vw); }
}
@keyframes dw-truck-tilt {
  0% { transform: rotate(-5deg); }
  30% { transform: rotate(-2deg); }
  36% { transform: rotate(6deg); }
  42% { transform: rotate(-2deg); }
  48%, 62% { transform: rotate(0); }
  68% { transform: rotate(-7deg); }
  100% { transform: rotate(-4deg); }
}
@keyframes dw-truck-streaks { 0%, 30% { opacity: 1; } 36%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes dw-truck-pass { from { transform: translateX(-75vw); } to { transform: translateX(80vw); } }
@keyframes dw-parcel-drop {
  0% { transform: translate(14px, -150%) rotate(-18deg) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  60% { transform: translate(0, 4%) rotate(3deg) scale(1.08, .9); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes dw-parcel-away { to { transform: translateY(25%) scale(.5); opacity: 0; } }
@keyframes dw-flap-l { to { transform: rotate(-135deg); } }
@keyframes dw-flap-r { to { transform: rotate(135deg); } }
@keyframes dw-light-on { 0% { opacity: 0; transform: scaleY(0); } 60% { opacity: 1; transform: scaleY(1.05); } 100% { opacity: .55; transform: scaleY(1); } }
@keyframes dw-light-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .7; } }
@keyframes dw-emerge {
  0% { opacity: 0; transform: translateY(30vh) scale(.1); }
  60% { opacity: 1; transform: translateY(-2%) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes dw-mini-pass {
  0% { transform: translateX(-220px); opacity: 0; }
  2% { opacity: .5; }
  22% { transform: translateX(calc(100vw + 40px)); opacity: .5; }
  23%, 100% { transform: translateX(calc(100vw + 40px)); opacity: 0; }
}

.dw-pattern { animation: dw-pattern-drift 40s linear infinite; }
.dw-scene__glow { animation: dw-glow 9s ease-in-out infinite; }
.dw-road__lane { animation: dw-lane .45s linear 6; }
.dw-truck { animation: dw-truck-drive 2.5s .15s both; }
.dw-truck__body { animation: dw-truck-tilt 2.5s ease-in-out .15s both; }
.dw-truck__streak { animation: dw-truck-streaks 2.5s linear .15s both; }
.dw-parcel { animation: dw-parcel-drop .55s cubic-bezier(.3, 1.3, .5, 1) 1.15s both, dw-parcel-away .5s ease-in 3.3s forwards; }
.dw-parcel__flap--l { animation: dw-flap-l .45s cubic-bezier(.3, 1.4, .5, 1) 2.15s both; }
.dw-parcel__flap--r { animation: dw-flap-r .45s cubic-bezier(.3, 1.4, .5, 1) 2.2s both; }
.dw-parcel__light { animation: dw-light-on .6s ease-out 2.25s both, dw-light-pulse 4s ease-in-out 2.9s infinite; }
.dw-mini { animation: dw-mini-pass 16s linear 5s infinite; }

.dw-stage .dw-logo { --dwl-t: 1.55s; }
.dw-stage__tag { animation: dw-rise .7s cubic-bezier(.2, .8, .3, 1) 2.9s both; }
.dw-stage__copy { animation: dw-fade-in 1s ease 3s both; }
.dw-stage .dw-card { transform-origin: 50% 100%; animation: dw-emerge .8s cubic-bezier(.2, .9, .3, 1.1) 2.3s both; }
.dw-stage .dw-card > * { animation: dw-rise .55s cubic-bezier(.2, .8, .3, 1) both; }
.dw-stage .dw-card > *:nth-child(1) { animation-delay: 2.6s; }
.dw-stage .dw-card > *:nth-child(2) { animation-delay: 2.67s; }
.dw-stage .dw-card > *:nth-child(3) { animation-delay: 2.74s; }
.dw-stage .dw-card > *:nth-child(4) { animation-delay: 2.81s; }
.dw-stage .dw-card > *:nth-child(n+5) { animation-delay: 2.88s; }

.dw-auth-body .form-control { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dw-auth-body .form-control:focus { transform: translateY(-1px); }
.dw-btn { position: relative; overflow: hidden; }
.dw-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.dw-btn:hover::after { transform: translateX(120%); }
.dw-auth-body .modal.show .modal-content { animation: dw-rise .45s cubic-bezier(.2, .8, .3, 1) both; }
.dw-auth-body .forget-pass-content img { animation: dw-float 4s ease-in-out infinite; }

/* registration hero: the cart drives through */
.dw-scene--strip { --dw-road-bottom: 70px; --dw-road-h: 40px; --dw-truck-w: 220px; position: absolute; background: none; }
.dw-scene--strip .dw-parcel, .dw-scene--strip .dw-scene__glow { display: none; }
.dw-scene--strip .dw-truck { animation: dw-truck-pass 3s cubic-bezier(.45, .05, .55, .95) .2s both; }
.dw-scene--strip .dw-truck__body { animation: none; transform: rotate(-3deg); }
.dw-scene--strip .dw-truck__streak { animation: none; }
.dw-scene--strip .dw-mini { width: 120px; animation-delay: 4s; }
.dw-reg-hero__title { animation: dw-rise .7s cubic-bezier(.2, .8, .3, 1) .9s both; }
.dw-reg-hero__lead { animation: dw-rise .7s cubic-bezier(.2, .8, .3, 1) 1.05s both; }
.dw-reg-main { animation: dw-rise .8s cubic-bezier(.2, .8, .3, 1) .3s both; }

@media (min-width: 768px) {
  .dw-stage .dw-logo { width: 210px; }
  .dw-scene--strip { --dw-truck-w: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .dw-logo *, .dw-scene *, .dw-stage__tag, .dw-stage__copy, .dw-stage .dw-card, .dw-stage .dw-card > *, .dw-reg-hero__title, .dw-reg-hero__lead, .dw-reg-main, .dw-auth-body .modal-content, .dw-auth-body .forget-pass-content img { animation: none !important; }
  .dw-logo__bar, .dw-logo__streak, .dw-logo__shine, .dw-truck__streak, .dw-mini { display: none; }
  .dw-btn::after { display: none; }
}
