/* ==========================================================================
   DelivAZ - Admin & Seller sign-in screen
   Self-contained: this file is the only stylesheet the login page needs.
   Brand palette is sampled from public/logo/logo.png (#FFBB39 / #E64338).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --dz-amber: #ffbb39;
    --dz-amber-strong: #f5a512;
    --dz-amber-soft: #fff3dc;
    /* Brand amber is a surface colour: at 1.9:1 on the cream canvas it is
       unreadable as text. Accent *text* uses this deeper ochre instead. */
    --dz-accent-text: #8f5e05;
    --dz-red: #e64338;
    --dz-red-soft: #fdeceb;

    --dz-ink: #17130f;
    --dz-ink-2: #241a12;
    --dz-ink-3: #33251a;

    --dz-canvas: #f6f3ee;
    --dz-surface: #ffffff;
    --dz-surface-2: #fbf9f6;
    --dz-line: #e8e2d9;
    --dz-line-strong: #d8d0c4;

    --dz-text: #1d2333;
    --dz-text-2: #4b5163;
    --dz-muted: #5e6579;

    --dz-success: #0d7551;
    --dz-success-soft: #e6f7f0;
    --dz-info: #2f7fe4;
    --dz-info-soft: #e9f2fd;
    --dz-warning: #d98518;
    --dz-warning-soft: #fdf3e2;

    --dz-radius-sm: 12px;
    --dz-radius-pill: 999px;

    --dz-shadow-btn: 0 10px 22px -10px rgba(245, 165, 18, .85);
    --dz-ease: cubic-bezier(.32, .72, .26, 1);
    --dz-font: 'Inter', 'Segoe UI', 'Noto Sans Arabic', Tahoma, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset (bootstrap is intentionally not loaded on this page)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.dz-auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--dz-canvas);
    color: var(--dz-text);
    font-family: var(--dz-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Resets are wrapped in :where() so they carry zero specificity and never
   beat the component rules further down (a bare `.dz-auth-body button`
   selector outranks `.dz-submit` and silently steals its colour). */
:where(.dz-auth-body) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(.dz-auth-body) button,
:where(.dz-auth-body) input,
:where(.dz-auth-body) select,
:where(.dz-auth-body) textarea {
    font: inherit;
    color: inherit;
    margin: 0;
}

:where(.dz-auth-body) a {
    color: inherit;
    text-decoration: none;
}

:where(.dz-auth-body) :is(h1, h2, h3, p, ul) {
    margin: 0;
    padding: 0;
}

:where(.dz-auth-body) ul {
    list-style: none;
}

:where(.dz-auth-body) svg {
    display: block;
}

.dz-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Consistent, visible keyboard focus everywhere. */
.dz-auth-body :focus-visible {
    outline: 3px solid rgba(255, 187, 57, .55);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. Page shell
   -------------------------------------------------------------------------- */
.dz-auth {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   4. Brand stage (left in LTR, right in RTL - the grid mirrors itself)
   -------------------------------------------------------------------------- */
.dz-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    padding: 46px 56px 40px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(120% 90% at 12% 0%, #3a2a17 0%, rgba(58, 42, 23, 0) 55%),
        linear-gradient(155deg, var(--dz-ink-2) 0%, var(--dz-ink) 58%, #120f0c 100%);
}

/* Ambient glow layers */
.dz-stage::before {
    content: "";
    position: absolute;
    inset: -30% -20% auto -25%;
    height: 78%;
    background: radial-gradient(closest-side, rgba(255, 187, 57, .34), rgba(255, 187, 57, 0) 72%);
    filter: blur(6px);
    z-index: -2;
    animation: dz-drift 22s var(--dz-ease) infinite alternate;
}

.dz-stage::after {
    content: "";
    position: absolute;
    inset: auto -25% -32% 20%;
    height: 66%;
    background: radial-gradient(closest-side, rgba(230, 67, 56, .26), rgba(230, 67, 56, 0) 70%);
    filter: blur(8px);
    z-index: -2;
    animation: dz-drift 26s var(--dz-ease) infinite alternate-reverse;
}

.dz-stage-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(115% 85% at 50% 30%, #000 35%, transparent 78%);
    mask-image: radial-gradient(115% 85% at 50% 30%, #000 35%, transparent 78%);
}

@keyframes dz-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6%, 8%, 0) scale(1.12); }
}

/* Stage header ---------------------------------------------------------- */
.dz-stage-logo img {
    width: 172px;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .45));
}

/* Stage copy ------------------------------------------------------------ */
.dz-stage-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 34rem;
}

.dz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 7px 15px;
    border-radius: var(--dz-radius-pill);
    background: rgba(255, 187, 57, .12);
    border: 1px solid rgba(255, 187, 57, .3);
    color: var(--dz-amber);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
}

.dz-eyebrow svg {
    width: 15px;
    height: 15px;
}

.dz-stage-title {
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.02em;
}

.dz-stage-title em {
    font-style: normal;
    color: var(--dz-amber);
}

.dz-stage-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .68);
    max-width: 30rem;
}

/* Feature list ---------------------------------------------------------- */
.dz-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dz-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .075);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .28s var(--dz-ease), border-color .28s var(--dz-ease), transform .28s var(--dz-ease);
}

.dz-feature:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 187, 57, .32);
    transform: translateY(-2px);
}

.dz-feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(140deg, rgba(255, 187, 57, .22), rgba(230, 67, 56, .16));
    color: var(--dz-amber);
}

.dz-feature-icon svg {
    width: 19px;
    height: 19px;
}

.dz-feature-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
}

.dz-feature-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .58);
}

/* Route illustration ---------------------------------------------------- */
.dz-scene {
    position: relative;
    margin-top: 4px;
}

.dz-scene svg {
    width: 100%;
    height: auto;
    max-height: 190px;
    overflow: visible;
}

[dir="rtl"] .dz-scene svg {
    transform: scaleX(-1);
}

.dz-route-bed {
    fill: none;
    stroke: rgba(255, 255, 255, .1);
    stroke-width: 10;
    stroke-linecap: round;
}

/* Dash/offset values are in normalised units: every route path carries
   pathLength="100", so 1 unit == 1% of the route. */
.dz-route-dash {
    fill: none;
    stroke: rgba(255, 255, 255, .3);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: .5 2.4;
}

.dz-route-live {
    fill: none;
    stroke: url(#dzRouteGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 26 74;
    animation: dz-trace 9s linear infinite;
}

@keyframes dz-trace {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

.dz-pin-halo { fill: rgba(255, 187, 57, .13); }
.dz-pin-disc { fill: #1c1710; stroke: rgba(255, 187, 57, .55); stroke-width: 1.5; }
.dz-pin-icon { fill: none; stroke: var(--dz-amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dz-pin-disc.is-end { stroke: rgba(230, 67, 56, .6); }
.dz-pin-icon.is-end { stroke: var(--dz-red); }
.dz-pin-halo.is-end { fill: rgba(230, 67, 56, .13); }

.dz-courier-disc {
    fill: var(--dz-amber);
    filter: drop-shadow(0 6px 14px rgba(255, 187, 57, .5));
}

.dz-courier-icon {
    fill: none;
    stroke: #1a140d;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dz-courier-ping {
    fill: none;
    stroke: rgba(255, 187, 57, .55);
    stroke-width: 1.5;
    animation: dz-ping 2.4s var(--dz-ease) infinite;
}

@keyframes dz-ping {
    0%   { r: 15px; opacity: .75; }
    100% { r: 27px; opacity: 0; }
}

/* Scene labels sit outside the SVG so they translate and never mirror. */
.dz-scene-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

.dz-scene-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dz-scene-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dz-amber);
    box-shadow: 0 0 0 3px rgba(255, 187, 57, .18);
}

.dz-scene-label.is-end i {
    background: var(--dz-red);
    box-shadow: 0 0 0 3px rgba(230, 67, 56, .18);
}

/* Stage footer ---------------------------------------------------------- */
.dz-stage-foot {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .38);
}

/* --------------------------------------------------------------------------
   5. Form panel
   -------------------------------------------------------------------------- */
.dz-panel {
    display: flex;
    flex-direction: column;
    padding: 30px 40px 34px;
    background: var(--dz-canvas);
}

.dz-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dz-panel-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 0;
}

.dz-card {
    width: 100%;
    max-width: 27rem;
}

/* Role pill ------------------------------------------------------------- */
.dz-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: var(--dz-radius-pill);
    background: var(--dz-surface);
    border: 1px solid var(--dz-line);
    box-shadow: 0 1px 2px rgba(23, 19, 15, .04);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dz-text-2);
}

[dir="rtl"] .dz-role {
    padding: 6px 8px 6px 14px;
}

.dz-role-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dz-amber-soft);
    color: var(--dz-accent-text);
}

.dz-role-dot svg {
    width: 14px;
    height: 14px;
}

.dz-auth--admin .dz-role-dot {
    background: var(--dz-red-soft);
    color: var(--dz-red);
}

/* Language switch ------------------------------------------------------- */
.dz-langs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--dz-radius-pill);
    background: var(--dz-surface);
    border: 1px solid var(--dz-line);
    box-shadow: 0 1px 2px rgba(23, 19, 15, .04);
}

.dz-lang {
    padding: 5px 13px;
    border-radius: var(--dz-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dz-muted);
    transition: color .2s var(--dz-ease), background .2s var(--dz-ease);
}

.dz-lang:hover {
    color: var(--dz-text);
}

.dz-lang.is-active {
    background: var(--dz-ink);
    color: #fff;
}

/* Heading --------------------------------------------------------------- */
.dz-head {
    margin-bottom: 24px;
}

.dz-head h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--dz-text);
}

.dz-head p {
    margin-top: 7px;
    color: var(--dz-muted);
    font-size: 14.5px;
}

/* Alerts ---------------------------------------------------------------- */
.dz-alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.dz-alerts:empty {
    display: none;
}

.dz-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--dz-radius-sm);
    border: 1px solid transparent;
    font-size: 13.5px;
    line-height: 1.5;
    animation: dz-rise .34s var(--dz-ease) both;
}

.dz-alert svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.dz-alert--error   { background: var(--dz-red-soft);     border-color: #f7c9c5; color: #a52c23; }
.dz-alert--success { background: var(--dz-success-soft); border-color: #bfe8d8; color: var(--dz-success); }
.dz-alert--warning { background: var(--dz-warning-soft); border-color: #f2ddb9; color: #92620f; }
.dz-alert--info    { background: var(--dz-info-soft);    border-color: #c8ddf8; color: #1f5eaa; }

@keyframes dz-rise {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Fields ---------------------------------------------------------------- */
.dz-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.dz-field label,
.dz-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dz-text-2);
}

.dz-control {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--dz-surface);
    border: 1.5px solid var(--dz-line);
    border-radius: 13px;
    transition: border-color .2s var(--dz-ease), box-shadow .2s var(--dz-ease), background .2s var(--dz-ease);
}

.dz-control:hover {
    border-color: var(--dz-line-strong);
}

.dz-control:focus-within {
    border-color: var(--dz-amber);
    box-shadow: 0 0 0 4px rgba(255, 187, 57, .18);
}

.dz-control-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 50px;
    color: var(--dz-muted);
    transition: color .2s var(--dz-ease);
}

.dz-control-icon svg {
    width: 18px;
    height: 18px;
}

.dz-control:focus-within .dz-control-icon {
    color: var(--dz-accent-text);
}

.dz-control input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0;
    padding-inline-end: 14px;
    border: 0;
    background: none;
    font-size: 15px;
    color: var(--dz-text);
    appearance: none;
}

.dz-control input::placeholder {
    color: #9298a8;
}

/* Emails and passwords are latin data: they must keep LTR character order
   even in an RTL interface, while still starting next to the leading icon. */
[dir="rtl"] .dz-control input {
    direction: ltr;
    text-align: right;
}

.dz-control input:focus {
    outline: none;
}

/* Keep Chrome's autofill from repainting the field blue. */
.dz-control input:-webkit-autofill,
.dz-control input:-webkit-autofill:hover,
.dz-control input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--dz-text);
    -webkit-box-shadow: 0 0 0 60px var(--dz-surface) inset;
    caret-color: var(--dz-text);
}

.dz-control.is-invalid {
    border-color: #eba49e;
    background: #fffaf9;
}

.dz-reveal {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 50px;
    border: 0;
    background: none;
    color: var(--dz-muted);
    cursor: pointer;
    border-radius: 11px;
    transition: color .2s var(--dz-ease);
}

.dz-reveal:hover {
    color: var(--dz-text);
}

.dz-reveal svg {
    width: 19px;
    height: 19px;
}

.dz-reveal .dz-eye-off {
    display: none;
}

.dz-reveal[aria-pressed="true"] .dz-eye-on {
    display: none;
}

.dz-reveal[aria-pressed="true"] .dz-eye-off {
    display: block;
}

/* Field-level hints ----------------------------------------------------- */
.dz-hint {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--dz-warning);
}

.dz-hint.is-on {
    display: flex;
    animation: dz-rise .22s var(--dz-ease) both;
}

.dz-hint svg {
    width: 14px;
    height: 14px;
}

.dz-error {
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--dz-red);
}

/* Label row with trailing link ------------------------------------------ */
.dz-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.dz-link {
    background: none;
    border: 0;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dz-accent-text);
    cursor: pointer;
    transition: color .2s var(--dz-ease);
}

.dz-link:hover {
    color: var(--dz-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Remember me ----------------------------------------------------------- */
.dz-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--dz-text-2);
    user-select: none;
}

.dz-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dz-check-box {
    flex: none;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1.5px solid var(--dz-line-strong);
    background: var(--dz-surface);
    color: #1a140d;
    transition: background .18s var(--dz-ease), border-color .18s var(--dz-ease);
}

.dz-check-box svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .18s var(--dz-ease), transform .18s var(--dz-ease);
}

.dz-check input:checked + .dz-check-box {
    background: var(--dz-amber);
    border-color: var(--dz-amber);
}

.dz-check input:checked + .dz-check-box svg {
    opacity: 1;
    transform: none;
}

.dz-check input:focus-visible + .dz-check-box {
    outline: 3px solid rgba(255, 187, 57, .55);
    outline-offset: 2px;
}

/* Submit ---------------------------------------------------------------- */
.dz-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    margin-top: 3px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--dz-amber) 0%, var(--dz-amber-strong) 100%);
    color: #1a140d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: var(--dz-shadow-btn);
    overflow: hidden;
    transition: transform .2s var(--dz-ease), box-shadow .2s var(--dz-ease), filter .2s var(--dz-ease);
}

/* Sheen sweep on hover */
.dz-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .7s var(--dz-ease);
    pointer-events: none;
}

.dz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(245, 165, 18, .95);
}

.dz-submit:hover::after {
    transform: translateX(120%);
}

.dz-submit:active {
    transform: translateY(0);
}

.dz-submit-idle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.dz-submit svg {
    width: 18px;
    height: 18px;
}

.dz-submit-arrow {
    transition: transform .2s var(--dz-ease);
}

.dz-submit:hover .dz-submit-arrow {
    transform: translateX(3px);
}

[dir="rtl"] .dz-submit-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .dz-submit:hover .dz-submit-arrow {
    transform: scaleX(-1) translateX(3px);
}

.dz-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(26, 20, 13, .28);
    border-top-color: #1a140d;
    border-radius: 50%;
    animation: dz-spin .7s linear infinite;
}

@keyframes dz-spin {
    to { transform: rotate(360deg); }
}

.dz-submit.is-busy {
    pointer-events: none;
    filter: saturate(.85);
}

.dz-submit.is-busy .dz-submit-idle {
    display: none;
}

.dz-submit.is-busy .dz-spinner {
    display: block;
}

/* Secondary button ------------------------------------------------------ */
.dz-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1.5px solid var(--dz-line);
    background: var(--dz-surface);
    color: var(--dz-text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s var(--dz-ease), color .2s var(--dz-ease), background .2s var(--dz-ease);
}

.dz-btn-ghost:hover {
    border-color: var(--dz-line-strong);
    background: var(--dz-surface-2);
    color: var(--dz-text);
}

/* Forgot-password drawer ------------------------------------------------ */
.dz-recover {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s var(--dz-ease);
}

.dz-recover.is-open {
    grid-template-rows: 1fr;
}

.dz-recover-inner {
    overflow: hidden;
    min-height: 0;
}

.dz-recover-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--dz-radius-sm);
    border: 1px dashed var(--dz-line-strong);
    background: var(--dz-surface-2);
}

.dz-recover-box > p {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--dz-muted);
}

.dz-recover-actions {
    display: flex;
    gap: 9px;
    margin-top: 12px;
}

.dz-recover-send {
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--dz-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s var(--dz-ease);
}

.dz-recover-send:hover {
    background: var(--dz-ink-3);
}

.dz-recover-send[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.dz-recover-msg {
    margin-top: 10px;
    font-size: 12.5px;
    min-height: 1em;
}

.dz-recover-msg.is-ok    { color: var(--dz-success); }
.dz-recover-msg.is-error { color: var(--dz-red); }

/* reCAPTCHA ------------------------------------------------------------- */
.dz-captcha {
    display: flex;
    justify-content: center;
}

/* Panel footer ---------------------------------------------------------- */
.dz-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--dz-line);
    font-size: 12.5px;
    color: var(--dz-muted);
}

.dz-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--dz-text-2);
    transition: color .2s var(--dz-ease);
}

.dz-back:hover {
    color: var(--dz-accent-text);
}

.dz-back svg {
    width: 15px;
    height: 15px;
}

[dir="rtl"] .dz-back svg {
    transform: scaleX(-1);
}

/* Demo credentials note -------------------------------------------------- */
.dz-demo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: var(--dz-radius-sm);
    background: var(--dz-info-soft);
    border: 1px dashed #b9d4f6;
    color: #1f5eaa;
    font-size: 12.5px;
}

.dz-demo svg {
    flex: none;
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .dz-stage { padding: 38px 40px 34px; }
    .dz-panel { padding: 26px 32px 30px; }
    .dz-features { gap: 9px; }
}

/* Short viewports. A sign-in screen that scrolls is a broken sign-in screen,
   so the stage sheds its optional layers as vertical room runs out.
   Only applies to the two-column layout; below 992px the page is a normal
   scrolling document. */
@media (min-width: 993px) and (max-height: 900px) {
    .dz-stage { gap: 24px; padding: 34px 48px 30px; }
    .dz-stage-logo img { width: 150px; }
    .dz-stage-body { gap: 18px; }
    .dz-feature { padding: 10px 14px; }
    .dz-feature-icon { width: 34px; height: 34px; }
    .dz-scene svg { max-height: 140px; }
    .dz-panel { padding: 24px 36px 26px; }
    .dz-panel-main { padding: 18px 0; }
    .dz-head { margin-bottom: 20px; }
}

@media (min-width: 993px) and (max-height: 800px) {
    .dz-scene,
    .dz-scene-labels { display: none; }
}

@media (min-width: 993px) and (max-height: 680px) {
    .dz-features { display: none; }
    .dz-stage-title { font-size: clamp(26px, 2.4vw, 34px); }
    .dz-stage-text { font-size: 15px; }
}

@media (min-width: 993px) and (max-height: 580px) {
    .dz-stage { gap: 16px; padding: 24px 40px 22px; }
    .dz-stage-logo img { width: 126px; }
    .dz-stage-foot { display: none; }
}

@media (max-width: 992px) {
    .dz-auth {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .dz-stage {
        gap: 22px;
        padding: 30px 28px 32px;
        text-align: center;
    }

    .dz-stage-logo img { margin-inline: auto; width: 148px; }
    .dz-stage-body { max-width: none; align-items: center; }
    .dz-eyebrow { align-self: center; }
    .dz-stage-text { max-width: 36rem; margin-inline: auto; }

    /* Trim the stage to a hero band on small screens. */
    .dz-features,
    .dz-scene,
    .dz-scene-labels,
    .dz-stage-foot { display: none; }

    .dz-panel { padding: 26px 24px 28px; }
    .dz-panel-main { padding: 22px 0; }
}

@media (max-width: 560px) {
    body.dz-auth-body { font-size: 14.5px; }

    .dz-stage { padding: 24px 20px 26px; }
    .dz-stage-logo img { width: 128px; }
    .dz-stage-title { font-size: 24px; }
    .dz-stage-text { font-size: 14.5px; }

    .dz-panel { padding: 20px 18px 24px; }
    .dz-head h1 { font-size: 23px; }
    .dz-panel-top { justify-content: center; }
    /* Stacked: the main axis is now vertical, so `flex: 1` would override
       the buttons' height and collapse them. */
    .dz-recover-actions { flex-direction: column; }
    .dz-recover-actions .dz-btn-ghost { width: 100%; }
    .dz-recover-send { flex: none; width: 100%; height: 44px; }
    .dz-panel-foot { justify-content: center; text-align: center; }
}

/* Touch pointers need bigger targets than a mouse does. */
@media (pointer: coarse), (max-width: 560px) {
    .dz-lang { padding: 8px 15px; }

    .dz-link {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
    }

    .dz-check { min-height: 40px; }

    .dz-back {
        min-height: 40px;
        padding-block: 8px;
    }

    .dz-reveal { width: 52px; }
}

/* --------------------------------------------------------------------------
   7. Dark scheme - the sign-in screen stands alone, so it can follow the OS.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --dz-canvas: #131110;
        --dz-surface: #1d1a17;
        --dz-surface-2: #232019;
        --dz-line: #302b25;
        --dz-line-strong: #443c32;

        --dz-text: #f3efe9;
        --dz-text-2: #cdc6bc;
        --dz-muted: #948b7f;

        --dz-success: #63d6ae;
        --dz-accent-text: var(--dz-amber);
        --dz-amber-soft: rgba(255, 187, 57, .16);
        --dz-red-soft: rgba(230, 67, 56, .15);
        --dz-success-soft: rgba(23, 166, 115, .14);
        --dz-info-soft: rgba(47, 127, 228, .14);
        --dz-warning-soft: rgba(217, 133, 24, .14);
    }

    .dz-alert--error   { border-color: rgba(230, 67, 56, .4);  color: #ff9d94; }
    .dz-alert--success { border-color: rgba(23, 166, 115, .4); color: #63d6ae; }
    .dz-alert--warning { border-color: rgba(217, 133, 24, .4); color: #f0b95f; }
    .dz-alert--info    { border-color: rgba(47, 127, 228, .4); color: #8dbcf5; }

    .dz-control.is-invalid { background: rgba(230, 67, 56, .07); border-color: rgba(230, 67, 56, .5); }
    .dz-control input::placeholder { color: #6e675e; }

    .dz-demo { border-color: rgba(47, 127, 228, .35); color: #8dbcf5; }

    .dz-lang.is-active { background: var(--dz-amber); color: #1a140d; }

    .dz-recover-send { background: var(--dz-amber); color: #1a140d; }
    .dz-recover-send:hover { background: var(--dz-amber-strong); }
}

/* --------------------------------------------------------------------------
   8. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dz-auth-body *,
    .dz-auth-body *::before,
    .dz-auth-body *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .dz-submit:hover,
    .dz-feature:hover { transform: none; }
}
