/* ==========================================================================
   RAINZON — Mobile OTP addon (auth pages + OTP widgets)
   Verify / Non-verify modes, phone row, code boxes, countdown, toasts.
   ========================================================================== */

:root {
    --rz-otp-orange: #FB7701;
    --rz-otp-orange-2: #FF4800;
    --rz-otp-ink: #1A1A1A;
    --rz-otp-muted: #7A7A7A;
    --rz-otp-line: #E9E9E9;
    --rz-otp-soft: #FAF7F4;
    --rz-otp-ok: #0E9F6E;
    --rz-otp-err: #E02424;
}

/* ---------------------------------------------------------------- auth page */
.rz-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(251, 119, 1, .12), transparent 60%),
        radial-gradient(700px 380px at 105% 110%, rgba(255, 72, 0, .10), transparent 60%),
        #F6F4F2;
    font-family: inherit;
}

.rz-auth-card {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #fff;
    border: 1px solid #EFEAE5;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(24, 16, 8, .10);
}

/* brand side */
.rz-auth-brand {
    position: relative;
    padding: 38px 34px;
    color: #fff;
    background:
        radial-gradient(520px 260px at 20% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(150deg, #FB7701 0%, #FF4800 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rz-auth-brand::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}
.rz-brand-logo { display: flex; align-items: center; gap: 10px; }
.rz-brand-logo img { height: 40px; width: auto; }
.rz-auth-brand h2 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin: 8px 0 0;
    color: #fff;
}
.rz-auth-brand p { font-size: 14px; opacity: .94; margin: 0; }
.rz-auth-points { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; }
.rz-auth-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.rz-auth-points i { font-size: 18px; opacity: .95; }
.rz-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 700;
}

/* form side */
.rz-auth-form { padding: 34px 36px; }
.rz-auth-form-head { margin-bottom: 18px; }
.rz-auth-form-head h1 { font-size: 24px; font-weight: 800; color: var(--rz-otp-ink); margin: 0 0 4px; letter-spacing: -.4px; }
.rz-auth-form-head p { font-size: 13.5px; color: var(--rz-otp-muted); margin: 0; }
.rz-auth-form-head a { color: var(--rz-otp-orange); font-weight: 700; }

.rz-field { margin-bottom: 14px; }
.rz-field label { display: block; font-size: 12.5px; font-weight: 700; color: #4A4A4A; margin-bottom: 6px; }
.rz-field .rz-input-wrap { position: relative; display: flex; align-items: center; }
.rz-field .rz-input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #B4B4B4;
    pointer-events: none;
}
.rz-input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--rz-otp-line);
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--rz-otp-ink);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.rz-input::placeholder { color: #ADADAD; }
.rz-input:focus {
    outline: none;
    border-color: var(--rz-otp-orange);
    box-shadow: 0 0 0 4px rgba(251, 119, 1, .12);
}
.rz-input.rz-invalid { border-color: var(--rz-otp-err); box-shadow: 0 0 0 4px rgba(224, 36, 36, .08); }
.rz-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: 0;
    color: #9A9A9A;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}
.rz-hint { display: block; font-size: 11.5px; color: #9A9A9A; margin-top: 5px; }
.rz-err { display: block; font-size: 12px; color: var(--rz-otp-err); margin-top: 5px; font-weight: 600; }

/* phone row */
.rz-phone-row { display: flex; gap: 8px; }
.rz-cc {
    height: 50px;
    border: 1.5px solid var(--rz-otp-line);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #3A3A3A;
    padding: 0 8px;
    min-width: 96px;
    flex: 0 0 auto;
}
.rz-phone-row .rz-input-wrap { flex: 1 1 auto; }
.rz-btn-otp {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #FB7701, #FF4800);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.rz-btn-otp:hover { box-shadow: 0 8px 18px rgba(251, 119, 1, .32); }
.rz-btn-otp:active { transform: scale(.98); }
.rz-btn-otp:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.rz-optional-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #F1F1F1;
    color: #6E6E6E;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* OTP block */
.rz-otp-block {
    border: 1.5px dashed #FFD9BD;
    background: #FFFBF7;
    border-radius: 14px;
    padding: 14px 16px 12px;
    margin-bottom: 14px;
}
.rz-otp-block.rz-verified { border-style: solid; border-color: #BFEBD6; background: #F4FCF7; }
.rz-otp-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #4A4A4A; margin-bottom: 10px; }
.rz-otp-title i { font-size: 17px; color: var(--rz-otp-orange); }
.rz-otp-title b { color: var(--rz-otp-ink); }
.rz-code-row { display: flex; gap: 8px; }
.rz-code {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--rz-otp-ink);
    border: 1.5px solid var(--rz-otp-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rz-code:focus { outline: none; border-color: var(--rz-otp-orange); box-shadow: 0 0 0 4px rgba(251, 119, 1, .12); }
.rz-code.rz-filled { border-color: #FFCFA6; background: #FFF8F3; }
.rz-otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rz-otp-timer { font-size: 12.5px; color: #8A8A8A; font-weight: 600; }
.rz-otp-timer b { color: var(--rz-otp-orange); }
.rz-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--rz-otp-orange);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}
.rz-link-btn:disabled { color: #B9B9B9; cursor: not-allowed; }
.rz-otp-msg { font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.rz-otp-msg.ok { color: var(--rz-otp-ok); }
.rz-otp-msg.err { color: var(--rz-otp-err); }
.rz-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #E7F8EF;
    color: #0B7A4B;
    font-size: 12.5px;
    font-weight: 800;
}

/* submit + socials */
.rz-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #FB7701, #FF4800);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(251, 119, 1, .28);
    transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.rz-submit:active { transform: scale(.985); }
.rz-submit:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.rz-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: #6E6E6E; margin: 12px 0 16px; }
.rz-terms input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--rz-otp-orange); }
.rz-terms a { color: var(--rz-otp-orange); font-weight: 700; }

.rz-divider { display: flex; align-items: center; gap: 12px; color: #A8A8A8; font-size: 12px; margin: 18px 0 14px; }
.rz-divider::before, .rz-divider::after { content: ''; flex: 1; height: 1px; background: #EDEDED; }
.rz-socials { display: flex; gap: 10px; }
.rz-socials a {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--rz-otp-line);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #3A3A3A;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}
.rz-socials a:hover { border-color: #FFD9BD; background: #FFFBF7; }
.rz-socials i { font-size: 18px; }

/* login page: password / OTP tabs */
.rz-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    background: #F4F1EE;
    border-radius: 14px;
    margin-bottom: 18px;
}
.rz-tab {
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 13.5px;
    font-weight: 800;
    color: #7A7A7A;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rz-tab.rz-active { background: #fff; color: var(--rz-otp-ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .07); }
.rz-pane { display: none; }
.rz-pane.rz-show { display: block; animation: rz-fade-in .22s ease both; }
@keyframes rz-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.rz-remember { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; font-size: 12.5px; }
.rz-remember label { display: flex; align-items: center; gap: 8px; color: #6E6E6E; margin: 0; cursor: pointer; }
.rz-remember input { width: 16px; height: 16px; accent-color: var(--rz-otp-orange); }
.rz-remember a { color: var(--rz-otp-orange); font-weight: 700; }

/* toast */
.rz-toast-wrap { position: fixed; right: 18px; top: 18px; z-index: 99999; display: grid; gap: 10px; }
.rz-toast {
    min-width: 240px;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border-left: 4px solid var(--rz-otp-orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
    font-size: 13px;
    font-weight: 600;
    color: #3A3A3A;
    animation: rz-toast-in .25s ease both;
}
.rz-toast.ok { border-left-color: var(--rz-otp-ok); }
.rz-toast.err { border-left-color: var(--rz-otp-err); }
@keyframes rz-toast-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.rz-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.rz-alert.err { background: #FDECEC; color: #B3261E; }
.rz-alert.ok { background: #E8F8EE; color: #137A3C; }

@media (max-width: 991.98px) {
    .rz-auth-card { grid-template-columns: 1fr; }
    .rz-auth-brand { padding: 26px 22px; gap: 12px; }
    .rz-auth-brand h2 { font-size: 22px; }
    .rz-auth-points { display: none; }
    .rz-auth-form { padding: 24px 20px; }
    .rz-auth { padding: 14px 10px; }
    .rz-code { width: 42px; height: 50px; font-size: 20px; }
}
@media (max-width: 400px) {
    .rz-code { width: 38px; height: 46px; font-size: 18px; }
    .rz-phone-row { flex-wrap: wrap; }
    .rz-btn-otp { width: 100%; }
}

/* ---------------------------------------------------- email / phone choice */
.rz-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.rz-choice-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border: 1.5px solid var(--rz-otp-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.rz-choice-opt i { font-size: 20px; color: #C4C4C4; transition: color .18s ease; }
.rz-choice-opt b { font-size: 13.5px; font-weight: 800; color: #3A3A3A; }
.rz-choice-opt span { font-size: 11.5px; color: #9A9A9A; line-height: 1.35; }
.rz-choice-opt:hover { border-color: #FFD9BD; }
.rz-choice-opt.rz-on {
    border-color: var(--rz-otp-orange);
    background: #FFF8F3;
    box-shadow: 0 6px 16px rgba(251, 119, 1, .10);
}
.rz-choice-opt.rz-on i { color: var(--rz-otp-orange); }
.rz-choice-opt.rz-on b { color: var(--rz-otp-ink); }
.rz-option-pane[hidden] { display: none; }
@media (max-width: 575.98px) {
    .rz-choice { grid-template-columns: 1fr; }
}

/* ==========================================================================
   POLISH PASS
   ========================================================================== */

/* --- brand lockup: the logo sits in a white chip so it reads on the gradient */
.rz-brand-logo {
    align-self: flex-start;
    background: #fff;
    padding: 9px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(120, 60, 0, .22);
}
.rz-brand-logo img { height: 30px; width: auto; display: block; }
.rz-brand-name { font-size: 21px; font-weight: 800; color: var(--rz-otp-orange); letter-spacing: -.4px; }

/* subtle dot texture on the brand panel */
.rz-auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .55;
    pointer-events: none;
}
.rz-auth-brand > * { position: relative; z-index: 1; }
.rz-auth-brand::after { z-index: 0; }

/* brand panel: a compact strip instead of a long paragraph on phones */
.rz-auth-media-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: .95;
    margin-top: auto;
}
@media (max-width: 991.98px) {
    .rz-auth-brand p { display: none; }
    .rz-auth-brand h2 { font-size: 20px; margin-top: 4px; }
    .rz-auth-brand { padding: 20px 18px; gap: 10px; }
    .rz-brand-logo { padding: 7px 12px; }
    .rz-brand-logo img { height: 24px; }
}

/* --- auth card footer line --- */
.rz-auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #9A9A9A;
}
.rz-auth-foot a { color: #7A7A7A; font-weight: 600; }
.rz-auth-foot i { color: var(--rz-otp-ok); font-size: 14px; }

/* --- OTP block reveals with a soft slide --- */
.rz-otp-block { animation: rz-otp-in .28s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes rz-otp-in {
    from { opacity: 0; transform: translateY(-6px) scale(.99); }
    to { opacity: 1; transform: none; }
}
.rz-otp-block.rz-verified { animation: rz-ok-pop .32s ease both; }
@keyframes rz-ok-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.012); }
    100% { transform: scale(1); }
}

/* verified chip row */
.rz-otp-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rz-verified-chip b { font-weight: 800; }

/* code boxes: filled pop */
.rz-code { transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease; }
.rz-code.rz-filled { transform: translateY(-1px); }
.rz-code:not(:placeholder-shown) { color: var(--rz-otp-ink); }

/* --- buttons: spinner state --- */
.rz-spin {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rz-spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 4px;
}
@keyframes rz-spin { to { transform: rotate(360deg); } }
.rz-btn-otp, .rz-submit { position: relative; }
.rz-btn-otp:disabled, .rz-submit:disabled { filter: saturate(.75); }

/* --- verify button inside the block --- */
.rz-verify-btn {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #FB7701, #FF4800);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.rz-verify-btn:disabled { opacity: .6; }

/* --- choice cards: compact rows on phones --- */
@media (max-width: 575.98px) {
    .rz-choice { grid-template-columns: 1fr; gap: 8px; }
    .rz-choice-opt {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }
    .rz-choice-opt i { font-size: 18px; }
    .rz-choice-opt b { font-size: 13px; }
    .rz-choice-opt span { display: none; }
}

/* --- toast stack: nicer on phones --- */
@media (max-width: 575.98px) {
    .rz-toast-wrap { left: 12px; right: 12px; top: 12px; }
    .rz-toast { min-width: 0; max-width: none; }
}

/* --- admin page: table rows are easier to scan --- */
.aiz-nexa .mo-card .table tbody tr:hover { background: #FFFBF7; }
.mo-card .table td { vertical-align: middle; }

/* disabled buttons: readable instead of washed out */
.rz-submit:disabled,
.rz-btn-otp:disabled {
    background: #F2E9E2 !important;
    color: #B9A091 !important;
    box-shadow: none !important;
    filter: none !important;
}
.rz-submit:disabled .rz-spin, .rz-btn-otp:disabled .rz-spin { border-color: rgba(0,0,0,.15); border-top-color: #B9A091; }

/* brand panel: a compact real-numbers strip fills the tall empty area */
.rz-brand-stats {
    display: flex;
    gap: 10px;
    margin: 22px 0 6px;
    flex-wrap: wrap;
}
.rz-brand-stat {
    flex: 1 1 0;
    min-width: 96px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(2px);
}
.rz-brand-stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.rz-brand-stat span { font-size: 11.5px; font-weight: 600; opacity: .9; }
@media (max-width: 991.98px) {
    .rz-brand-stats { display: none; }
}

/* ==========================================================================
   SELLER PAGES (Seller Centre login + shop registration)
   ========================================================================== */

/* form section label */
.rz-form-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #A08D80;
}
.rz-form-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F0EBE7;
}
.rz-form-section i { font-size: 15px; color: var(--rz-otp-orange); }

/* compact fields so the longer seller form stays comfortable */
.rz-form-tight .rz-input,
.rz-form-tight .rz-cc,
.rz-form-tight .rz-btn-otp { height: 46px; }
.rz-form-tight .rz-field { margin-bottom: 12px; }

/* seller card is taller: let it use more of the viewport */
.rz-auth-card.rz-auth-wide { max-width: 1100px; }

/* small note under the seller submit */
.rz-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #8A8A8A;
    line-height: 1.5;
}
.rz-note i { color: var(--rz-otp-orange); font-size: 15px; margin-top: 1px; }

@media (max-width: 767.98px) {
    .rz-form-section { margin: 16px 0 10px; }
}

/* taller seller card: centre the brand column instead of leaving a hole */
.rz-auth-wide .rz-auth-brand { justify-content: center; }
.rz-auth-wide .rz-auth-points { margin: 18px 0 0; }
.rz-auth-wide .rz-auth-media-note { margin-top: 18px; }
@media (max-width: 991.98px) {
    .rz-auth-wide .rz-auth-brand { justify-content: flex-start; }
}
