/* ==========================================================================
   Qemmah — Auth pages (login / register / OTP; customer, checkout, seller)
   Pushed by layoutmodule::components.qm-auth. Self-contained: the seller
   layout (masterseller3) doesn't load premium.css, so the tokens it needs
   are declared here on .qm-auth. Every rule is scoped to .qm-auth.
   ========================================================================== */

.qm-auth {
    --qa-gold-1: #f6e3c8;
    --qa-gold-2: #e2c19c;
    --qa-gold-3: #c79a72;
    --qa-gold-4: #a1785c;
    --qa-brown: #6b3e2e;
    --qa-ink: #1a1210;
    --qa-text: #3a2a22;
    --qa-muted: #8a7466;
    --qa-line: #eadfd3;
    --qa-field: #fffdfb;
    --qa-ring: 0 0 0 4px rgba(199, 154, 114, .2);
    --qa-ease: cubic-bezier(.22, .8, .24, 1);
    --qa-gloss: linear-gradient(180deg, #ecd0ad 0%, #cfa47b 42%, #a1785c 56%, #7d5238 100%);

    padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 88px);
    color: var(--qa-text);
}

/* --------------------------------------------------------------------------
   1. Shell
   -------------------------------------------------------------------------- */

.qm-auth__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    width: min(1160px, 100% - 32px);
    min-height: 620px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(161, 120, 92, .12),
        0 2px 6px -2px rgba(58, 34, 25, .06),
        0 48px 90px -48px rgba(58, 34, 25, .5);
}

.qm-auth--wide .qm-auth__inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); }

.qm-auth__main {
    display: flex;
    align-items: center;
    padding: clamp(28px, 4.5vw, 64px) clamp(20px, 4.5vw, 64px);
}

.qm-auth__body { width: 100%; max-width: 440px; margin-inline: auto; }
.qm-auth--wide .qm-auth__body { max-width: 640px; }

.qm-auth__top { margin-bottom: 28px; }

.qm-auth__head { margin-bottom: 28px; }

.qm-auth__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--qa-ink);
    text-align: start;
}

.qm-auth__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--qa-muted);
    text-align: start;
}

/* --------------------------------------------------------------------------
   2. Brand panel
   -------------------------------------------------------------------------- */

.qm-auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 44px 44px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(520px 360px at 85% -10%, rgba(226, 193, 156, .38), transparent 60%),
        radial-gradient(420px 320px at 0% 110%, rgba(161, 120, 92, .45), transparent 60%),
        linear-gradient(150deg, #1a1210 0%, #2b1a14 48%, #4a2c20 100%);
}

/* fine diamond lattice, as in the home hero */
.qm-auth__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .07;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}

.qm-auth__orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: qa-float 14s ease-in-out infinite alternate;
}

.qm-auth__orb--1 { width: 300px; height: 300px; top: -110px; inset-inline-start: -60px; background: #c79a72; }
.qm-auth__orb--2 { width: 260px; height: 260px; bottom: -120px; inset-inline-end: -80px; background: #7d5238; animation-delay: -6s; }

@keyframes qa-float {
    to { transform: translate3d(30px, 24px, 0) scale(1.1); }
}

.qm-auth__arch {
    position: relative;
    align-self: center;
    width: min(230px, 62%);
    aspect-ratio: 9 / 14;
    margin: 6px 0 0;
    overflow: hidden;
    border-radius: 999px 999px 22px 22px;
    background: #3a2219;
    outline: 1px solid rgba(226, 193, 156, .5);
    outline-offset: 8px;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85);
}

.qm-auth__arch img { display: block; width: 100%; height: 100%; object-fit: cover; }

.qm-auth__arch::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(0deg, rgba(43, 26, 20, .55) 0%, rgba(43, 26, 20, 0) 40%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    border-radius: inherit;
}

.qm-auth__mark {
    display: block;
    height: 34px;
    aspect-ratio: var(--qm-logo-ratio, 2084 / 863);
    margin-bottom: 18px;
    background: linear-gradient(100deg, #c79a72 0%, #f6e3c8 30%, #fffaf2 42%, #e2c19c 55%, #a1785c 80%, #e2c19c 100%);
    background-size: 250% 100%;
    -webkit-mask: var(--qm-logo) center / contain no-repeat;
    mask: var(--qm-logo) center / contain no-repeat;
    animation: qa-gold-flow 6s linear infinite;
}

@keyframes qa-gold-flow {
    to { background-position: 220% 50%; }
}

.qm-auth__pitch-title {
    margin: 0 0 10px;
    padding-bottom: .15em;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.35;
    text-align: start;
    background: linear-gradient(100deg, #f6e3c8 0%, #e2c19c 35%, #fff5e6 50%, #c79a72 70%, #f6e3c8 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: qa-gold-flow 7s linear infinite;
}

.qm-auth__pitch-sub {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .74);
    text-align: start;
}

.qm-auth__points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid rgba(226, 193, 156, .18);
}

.qm-auth__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .86);
}

.qm-auth__points i {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    color: var(--qa-gold-2);
    background: rgba(226, 193, 156, .1);
    border: 1px solid rgba(226, 193, 156, .28);
}

/* --------------------------------------------------------------------------
   3. Form primitives
   -------------------------------------------------------------------------- */

.qm-auth form { margin: 0; padding: 0; }

.qm-auth .qm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.qm-auth .qm-field { margin-bottom: 20px; text-align: start; }
.qm-auth .qm-grid > .qm-field--full { grid-column: 1 / -1; }

/* forms.css styles every <label> with !important, so these need it too */
.qm-auth .qm-label {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: var(--qa-ink) !important;
}

.qm-auth .qm-label small {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--qa-muted);
}

.qm-auth .qm-input,
.qm-auth .collection input#phone,
.qm-auth select.qm-input {
    display: block;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 16px;
    font-size: 15px;
    color: var(--qa-ink);
    background: var(--qa-field);
    border: 1px solid var(--qa-line);
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(58, 34, 25, .04);
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.qm-auth .qm-input::placeholder { color: #b9a797; }

.qm-auth .qm-input:hover,
.qm-auth .collection input#phone:hover { border-color: #dccbb9; }

.qm-auth .qm-input:focus,
.qm-auth .collection input#phone:focus {
    outline: 0;
    background: #fff;
    border-color: var(--qa-gold-3);
    box-shadow: var(--qa-ring);
}

.qm-auth .qm-input.is-invalid,
.qm-auth .collection input#phone.is-invalid { border-color: #d9534f; background-image: none; }

.qm-auth .qm-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--qa-muted);
}

.qm-auth .qm-hint i { color: var(--qa-gold-3); }
.qm-auth .qm-hint--center { flex-wrap: wrap; justify-content: center; margin-top: 14px; text-align: center; }
.qm-auth .qm-hint a { font-weight: 700; color: var(--qa-brown) !important; text-decoration: underline; text-underline-offset: 3px; }

/* validation messages (kept as Bootstrap .alert-danger for the existing @error blocks) */
.qm-auth .alert-danger {
    position: static !important;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    background: none;
    border: 0;
    text-align: start;
}

.qm-auth .alert-danger::before {
    content: "\f06a";
    margin-inline-end: 6px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* ----- Phone number with country code (seller::phone-register-component) ----- */

.qm-auth .collection { position: relative; width: 100%; margin: 0; }

.qm-auth .collection input#phone {
    padding-inline: 16px;
    padding-left: 128px !important;  /* forms.css pads number inputs with !important */
    padding-top: 0 !important;
    direction: ltr;
    text-align: left;
    letter-spacing: .04em;
}

/* the country picker overlays the input's left edge; anchor it to .collection */
.qm-auth .collection > .countries.dropdown { position: static !important; display: block !important; }

.qm-auth .collection .country_input {
    top: 0;
    left: 0;
    height: 52px;
    padding: 0 6px 0 12px;
    direction: ltr;
}

.qm-auth .collection .country_input > .position-relative { display: flex; align-items: center; }

.qm-auth .collection .country_input .dropdown-toggle {
    flex-direction: row-reverse;
    gap: 2px;
    height: 36px !important;
    padding: 0 8px 0 4px;
    border-inline-end: 1px solid var(--qa-line);
}

.qm-auth .collection .country_input .dropdown-toggle::after { display: none; }
.qm-auth .collection .country_input .flag { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; }
.qm-auth .collection .tel_input { width: 46px; height: 36px; min-height: 0; font-size: 15px; font-weight: 700; color: var(--qa-ink); background: none; box-shadow: none; text-align: center; }
.qm-auth .collection .chevron { width: 18px !important; opacity: .55; }

.qm-auth .collection .tel_dropdown {
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--qa-line);
    border-radius: 14px;
    box-shadow: 0 24px 48px -24px rgba(58, 34, 25, .45);
}

.qm-auth .collection .tel_dropdown .dropdown-item { gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.qm-auth .collection .tel_dropdown .dropdown-item:hover { background: #f8f1ea; }
.qm-auth .collection .tel_dropdown .text_dropdown { font-size: 12px; color: var(--qa-muted); }
.qm-auth .collection .tel_dropdown object.countries { width: 24px; height: 18px; }

/* ----- Primary button ----- */

.qm-auth .qm-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin: 6px 0 0;
    padding: 0 24px;
    overflow: hidden;
    isolation: isolate;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(58, 34, 25, .35);
    background: var(--qa-gloss);
    border: 0;
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .6),
        inset 0 -3px 8px rgba(58, 34, 25, .25),
        0 14px 28px -14px rgba(107, 62, 46, .8);
    cursor: pointer;
    transition: transform .3s var(--qa-ease), box-shadow .3s var(--qa-ease), filter .3s;
}

.qm-auth .qm-submit::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    z-index: -1;
    width: 40%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0));
    transform: translateX(-180%) skewX(-22deg);
    animation: qa-sweep 4s cubic-bezier(.45, 0, .2, 1) infinite;
    pointer-events: none;
}

@keyframes qa-sweep {
    0%, 55% { transform: translateX(-180%) skewX(-22deg); }
    100%    { transform: translateX(380%) skewX(-22deg); }
}

.qm-auth .qm-submit:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 8px rgba(58, 34, 25, .22), 0 20px 34px -16px rgba(107, 62, 46, .85); }
.qm-auth .qm-submit:active { transform: translateY(0); }
.qm-auth .qm-submit:focus-visible { outline: 0; box-shadow: var(--qa-ring), 0 14px 28px -14px rgba(107, 62, 46, .8); }
.qm-auth .qm-submit i { font-size: 13px; }
.qm-auth .qm-submit[disabled] { filter: grayscale(.4) opacity(.7); cursor: not-allowed; }

/* ----- Secondary (outline) button ----- */

.qm-auth .qm-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--qa-brown) !important;
    background: #fff;
    border: 1px solid #e3d3c3;
    border-radius: 14px;
    text-decoration: none !important;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}

.qm-auth .qm-ghost:hover { background: #fcf8f4; border-color: var(--qa-gold-3); box-shadow: 0 10px 22px -16px rgba(107, 62, 46, .6); }

/* ----- Social sign-in ----- */

.qm-auth .qm-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.qm-auth .qm-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--qa-ink) !important;
    background: #fff;
    border: 1px solid var(--qa-line);
    border-radius: 14px;
    text-decoration: none !important;
    transition: border-color .25s, box-shadow .25s, transform .25s var(--qa-ease);
}

.qm-auth .qm-social a:hover { border-color: #d8c5b2; box-shadow: 0 12px 24px -18px rgba(58, 34, 25, .55); transform: translateY(-1px); }
.qm-auth .qm-social img { width: 20px; height: 20px; }

/* ----- guest checkout (checkout sign-in step) ----- */

.qm-auth .qm-guest { display: grid; gap: 8px; margin-top: 14px; text-align: center; }
.qm-auth .qm-guest__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--qa-brown) !important;
    background: #f8f1ea;
    border: 1.5px dashed var(--qa-gold-3);
    border-radius: 14px;
    text-decoration: none !important;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.qm-auth .qm-guest__btn:hover { background: #fff; box-shadow: 0 12px 24px -18px rgba(58, 34, 25, .55); transform: translateY(-1px); }
.qm-auth .qm-guest__btn i { color: var(--qa-gold-3); }
.qm-auth .qm-guest small { font-size: 12.5px; line-height: 1.7; color: var(--qa-muted); }

/* ----- "or" divider ----- */

.qm-auth .qm-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--qa-muted);
}

.qm-auth .qm-divider::before,
.qm-auth .qm-divider::after { content: ""; flex: 1; height: 1px; background: var(--qa-line); }

/* ----- "New to Qemmah? Create an account" ----- */

.qm-auth .qm-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0 0;
    padding-top: 22px;
    font-size: 14.5px;
    color: var(--qa-muted);
    border-top: 1px solid var(--qa-line);
}

.qm-auth .qm-switch a { font-weight: 700; color: var(--qa-brown) !important; text-decoration: none; border-bottom: 1px solid rgba(161, 120, 92, .35); transition: border-color .2s; }
.qm-auth .qm-switch a:hover { border-color: var(--qa-brown); }

/* ----- Checkboxes ----- */

.qm-auth .qm-check {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: var(--qa-text) !important;
    cursor: pointer;
}

.qm-auth .qm-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.qm-auth .qm-check__box {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid #d6c4b2;
    border-radius: 7px;
    background: #fff;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.qm-auth .qm-check__box::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s var(--qa-ease);
}

.qm-auth .qm-check input:checked + .qm-check__box { background: var(--qa-gloss); border-color: var(--qa-gold-4); }
.qm-auth .qm-check input:checked + .qm-check__box::after { transform: rotate(45deg) scale(1); }
.qm-auth .qm-check input:focus-visible + .qm-check__box { box-shadow: var(--qa-ring); }
.qm-auth .qm-check input.is-invalid + .qm-check__box { border-color: #d9534f; }
.qm-auth .qm-check a { color: var(--qa-brown) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ----- Segmented choice (gender: .gender is wired up in index.js) ----- */

.qm-auth .qm-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    background: #f6efe8;
    border: 1px solid var(--qa-line);
    border-radius: 14px;
}

.qm-auth .qm-segment .gender {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 40px;
    margin: 0 !important;
    padding: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--qa-muted);
    background: transparent;
    border: 0 !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}

.qm-auth .qm-segment .gender span { color: inherit !important; font-size: inherit !important; }
.qm-auth .qm-segment .gender.active { color: var(--qa-brown); background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px -8px rgba(58, 34, 25, .45); }

/* ----- Select2 (country) inside the auth card ----- */

.qm-auth .select2-container { width: 100% !important; }

.qm-auth .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 52px !important;
    background: var(--qa-field);
    border: 1px solid var(--qa-line) !important;
    border-radius: 14px !important;
}

.qm-auth .select2-container--open .select2-selection--single,
.qm-auth .select2-container--focus .select2-selection--single { border-color: var(--qa-gold-3) !important; box-shadow: var(--qa-ring); }
.qm-auth .select2-selection__rendered { padding-inline: 16px !important; font-size: 15px; color: var(--qa-ink) !important; line-height: 50px !important; }
.qm-auth .select2-selection__arrow { top: 13px !important; inset-inline-end: 10px; }

/* ----- OTP ----- */

.qm-auth .qm-otp-to {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--qa-brown);
    background: #f8f1ea;
    border: 1px solid var(--qa-line);
    border-radius: 999px;
    direction: ltr;
}

.qm-auth .otp_form { direction: ltr; }

.qm-auth .otp_form .inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }

.qm-auth .otp_form .input_otp {
    width: 52px;
    height: 60px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--qa-ink);
    text-align: center;
    background: var(--qa-field);
    border: 1px solid var(--qa-line);
    border-radius: 14px;
    caret-color: var(--qa-gold-4);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--qa-ease);
}

.qm-auth .otp_form .input_otp:focus { outline: 0; border-color: var(--qa-gold-3); box-shadow: var(--qa-ring); transform: translateY(-2px); background: #fff; }

.qm-auth .qm-otp-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    margin: 18px 0 20px;
    line-height: 1.5;
    font-size: 14px;
    color: var(--qa-muted);
    direction: rtl;
}

.qm-en.qm-auth .qm-otp-meta { direction: ltr; }
.qm-auth .qm-otp-meta .otp-time { display: inline-block; margin: 0; padding: 0; font-size: 14px !important; font-weight: 800; line-height: 1.5; color: var(--qa-brown); font-variant-numeric: tabular-nums; direction: ltr; }
.qm-auth .qm-otp-meta .resend-otp { font-size: 14.5px; font-weight: 700; color: var(--qa-brown) !important; }
.qm-auth .loader-img { display: block; width: 40px; margin: 0 auto 12px; }
.qm-auth .loader-img.d-none { display: none; }
.qm-auth #error { margin: 10px 0 0; text-align: center; }

/* once the timer runs out the page shows "resend": drop the countdown */
.qm-auth .qm-otp-meta:has(#resend-otp:not(.d-none)) .qm-otp-meta__label,
.qm-auth .qm-otp-meta:has(#resend-otp:not(.d-none)) .otp-time { display: none; }
.qm-auth .qm-otp-to-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 26px; }
.qm-auth .qm-otp-to { margin: 0; }
.qm-auth .qm-otp-edit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--qa-brown); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--qa-gold-2); }
.qm-auth .qm-otp-edit:hover { color: var(--qa-gold-3); }
.qm-auth .qm-otp-edit i { font-size: 13px; color: var(--qa-gold-3); }
.qm-auth .qm-otp-to i { font-size: 14px; color: var(--qa-gold-3); }

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .qm-auth__inner,
    .qm-auth--wide .qm-auth__inner { grid-template-columns: 1fr; min-height: 0; }
    .qm-auth__aside { display: none; }
    .qm-auth__main { border-top: 3px solid; border-image: linear-gradient(90deg, transparent, var(--qa-gold-2), var(--qa-gold-4), var(--qa-gold-2), transparent) 1; }
}

@media (max-width: 575px) {
    .qm-auth { padding-top: 16px; }
    .qm-auth__inner { width: calc(100% - 24px); border-radius: 22px; }
    .qm-auth__main { padding: 28px 18px 32px; }
    .qm-auth .qm-grid { grid-template-columns: 1fr; }
    .qm-auth .qm-social { grid-template-columns: 1fr; }
    .qm-auth .otp_form .inputs { gap: 6px; }
    .qm-auth .otp_form .input_otp { width: 44px; height: 54px; font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .qm-auth *,
    .qm-auth *::before,
    .qm-auth *::after { animation: none !important; transition: none !important; }
}
