/* ============================================================
   MyMoviz — auth theme (login / signup / forgot password)
   Old-browser-safe build: targets Chromium ~38 / LG webOS TVs.
   NO css-variables, :has(), conic-gradient, flex gap, unprefixed
   keyframes, or justify-content:safe — those break on old engines.
   Uses only flexbox / rgba / gradients / transitions / SVG, which
   all work on Chromium 38+. Loaded LAST (overrides legacy styles).
   ============================================================ */

/* ---- IRANSans (self-contained: these pages no longer load main71.css) ---- */
@font-face { font-family: IRANSans; font-style: normal; font-weight: 400;
    src: url('/assets/main/fonts/woff2/IRANSansWeb.woff2') format('woff2'),
         url('/assets/main/fonts/woff/IRANSansWeb.woff') format('woff'),
         url('/assets/main/fonts/ttf/IRANSansWeb.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 500;
    src: url('/assets/main/fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('/assets/main/fonts/woff/IRANSansWeb_Medium.woff') format('woff'),
         url('/assets/main/fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 700;
    src: url('/assets/main/fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('/assets/main/fonts/woff/IRANSansWeb_Bold.woff') format('woff'),
         url('/assets/main/fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 800;
    src: url('/assets/main/fonts/woff2/IRANSansWeb_Black.woff2') format('woff2'),
         url('/assets/main/fonts/woff/IRANSansWeb_Black.woff') format('woff'),
         url('/assets/main/fonts/ttf/IRANSansWeb_Black.ttf') format('truetype'); font-display: swap; }

/* ---- Legacy utility classes the markup still uses ---- */
.clearfix:after { content: ""; display: table; clear: both; }
.text-center { text-align: center !important; }
.bold { font-weight: 700 !important; }
.text-gray-dark { color: #f4f6fb !important; }
.img-responsive { max-width: 100%; height: auto; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.row { margin: 0; }

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    font-family: "IRANSans", "Vazirmatn", Tahoma, Arial, sans-serif !important;
    direction: rtl;
    background: #0c0d12 !important;            /* fallback for engines that drop the gradient */
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(229,9,20,.22), transparent 60%),
        radial-gradient(820px 520px at 100% 8%, rgba(123,92,255,.16), transparent 55%),
        linear-gradient(180deg, #0c0d12, #0a0b0f) !important;
    color: #f4f6fb !important;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    min-height: 100vh;
    padding: 28px 16px;
    box-sizing: border-box;
}

/* ============================================================
   MAIN CARD  (<main class="box-form">) — single column by default,
   split (form + hero) only when body has .au-split (added in PHP
   when the hero is rendered, i.e. not $isHidden). No :has() needed.
   ============================================================ */
main.box-form {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 16px auto !important;
    padding: 30px 28px !important;
    overflow: hidden;
    background: #14161d !important;                 /* solid fallback */
    background: rgba(20,22,30,.92) !important;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.10) !important;
    border-top: 3px solid #e50914 !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 70px rgba(0,0,0,.55) !important;
    float: none !important;
}
/* split layout (desktop, hero present) */
body.au-split main.box-form {
    max-width: 900px;
    padding: 0 !important;
    border-top-width: 1px !important;
    display: -webkit-box; display: -webkit-flex; display: flex;
}
body.au-split main.box-form > .-container {
    -webkit-box-flex: 1; -webkit-flex: 1 1 0%; flex: 1 1 0%;
    -webkit-box-ordinal-group: 1; -webkit-order: 0; order: 0;
    padding: 40px 34px !important;
    min-width: 0;
}
.box-form .-container { padding: 0 !important; }

/* ---- HERO / marketing panel (left in RTL) ---- */
.au-hero {
    -webkit-box-flex: 1; -webkit-flex: 1 1 0%; flex: 1 1 0%;
    -webkit-box-ordinal-group: 2; -webkit-order: 1; order: 1;
    position: relative;
    overflow: hidden;
    padding: 40px 34px;
    min-width: 0;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
    -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
    border-left: 1px solid rgba(255,255,255,.10);
    background: #1a0f17;
    background:
        linear-gradient(180deg, rgba(10,11,15,.28), rgba(10,11,15,.9)),
        radial-gradient(120% 85% at 16% 10%, rgba(229,9,20,.6), transparent 60%),
        radial-gradient(120% 85% at 92% 92%, rgba(123,92,255,.55), transparent 55%);
}
/* hide hero entirely if it somehow renders without the split (e.g. very old engine) */
body:not(.au-split) .au-hero { display: none; }

.au-hero-art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.au-hero-art span {
    position: absolute; border-radius: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.au-hero-art span:nth-child(1) { width: 96px;  height: 138px; top: -26px;  right: -16px; -webkit-transform: rotate(11deg);  transform: rotate(11deg);  opacity: .5; }
.au-hero-art span:nth-child(2) { width: 116px; height: 166px; bottom: -34px; left: -22px; -webkit-transform: rotate(-13deg); transform: rotate(-13deg); opacity: .45; }
.au-hero-art span:nth-child(3) { width: 78px;  height: 112px; top: 42%; left: 32%; -webkit-transform: rotate(7deg); transform: rotate(7deg); opacity: .35; }

.au-hero-body { position: relative; z-index: 1; }
.au-logo { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 27px; font-weight: 800; color: #fff; }
.au-logo svg { width: 32px; height: 32px; color: #ff3b3b; margin-left: 11px; }
.au-hero-tag { color: rgba(255,255,255,.84); font-size: 15px; line-height: 2; margin: 14px 0 24px; }
.au-hero-feats { list-style: none; margin: 0; padding: 0; }
.au-hero-feats li { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; color: rgba(255,255,255,.92); font-size: 14.5px; margin-bottom: 16px; }
.au-hero-feats li:last-child { margin-bottom: 0; }
.au-hero-feats svg { width: 22px; height: 22px; color: #f5c518; }
.au-hero-feats li span {
    width: 38px; height: 38px; border-radius: 11px; margin-left: 12px;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}

/* ---- Title / brand ---- */
.-title { margin: 0 0 6px 0 !important; font-size: 23px !important; font-weight: 800 !important; text-align: center; color: #f4f6fb !important; line-height: 1.45; }
.-title img { max-height: 44px; width: auto; margin: 0 auto 6px auto; display: block; }
.box-form > .-container > p, .box-form .-message, .box-form > p { color: #9aa3b4; text-align: center; font-size: 14px; margin: 4px 0 16px; line-height: 1.95; }
.box-form p strong, .box-form p span { color: #f4f6fb; }

/* ---- Fields ---- */
.form-group { margin-bottom: 14px !important; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 11px !important;
    color: #f4f6fb !important;
    padding: 13px 15px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-transition: border-color .18s, background .18s; transition: border-color .18s, background .18s;
    height: auto !important;
}
.form-control::-webkit-input-placeholder { color: #707888 !important; }
.form-control::placeholder { color: #707888 !important; opacity: 1; }
.form-control:focus { border-color: #e50914 !important; background: rgba(229,9,20,.05) !important; box-shadow: 0 0 0 3px rgba(229,9,20,.18) !important; }
.customInput { background: #fff !important; color: #111 !important; font-weight: 700; letter-spacing: 3px; }
/* keep the TV-code field readable on focus (default .form-control:focus turns it dark red) */
.customInput:focus { background: #fff !important; color: #111 !important; border-color: #e50914 !important; box-shadow: 0 0 0 3px rgba(229,9,20,.18) !important; }
.customInput::-webkit-input-placeholder { color: #707888 !important; }
.customInput::placeholder { color: #707888 !important; opacity: 1; }

/* ---- Icon field wrapper ---- */
.au-field { position: relative; }
.au-field .au-ico { position: absolute; left: 14px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: #9aa3b4; pointer-events: none; }
.au-field .form-control { padding-left: 42px !important; }
.au-field.has-toggle .form-control { padding-right: 42px !important; }
.au-field .au-eye {
    position: absolute; right: 8px; top: 50%; margin-top: -15px;
    background: none; border: 0; padding: 6px; cursor: pointer; color: #9aa3b4; border-radius: 8px; line-height: 0;
}
.au-field .au-eye:hover { color: #f4f6fb; background: rgba(255,255,255,.06); }
.au-field .au-eye svg { width: 18px; height: 18px; display: block; }
.au-field .au-eye .eye-off { display: none; }
.au-field .au-eye.is-on .eye-on { display: none; }
.au-field .au-eye.is-on .eye-off { display: block; }

/* ---- Captcha (image on top, full-width input below) ---- */
.au-captcha { margin-bottom: 14px; }
.au-captcha .au-cap-img { position: relative; display: inline-block; margin: 0 0 10px 0; border: 1px solid rgba(255,255,255,.10); border-radius: 11px; background: #fff; overflow: hidden; line-height: 0; }
.au-captcha { text-align: center; }
.au-captcha .au-field { text-align: right; }
.au-captcha #capimage { display: block; height: 56px; width: auto; cursor: pointer; border: 0; margin: 0; background: #fff; }
.au-captcha .au-refresh { position: absolute; bottom: 5px; left: 5px; width: 26px; height: 26px; border: 0; border-radius: 7px; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; padding: 0; line-height: 0; }
.au-captcha .au-refresh:hover { background: rgba(0,0,0,.8); }
.au-captcha .au-refresh svg { width: 15px; height: 15px; }
#capimage { display: block; margin: 2px auto 8px auto; max-width: 100%; border-radius: 11px; border: 1px solid rgba(255,255,255,.10); background: #fff; }
.box-form a[onclick] { color: #f5c518; cursor: pointer; font-size: 13px; }

/* ---- Buttons ---- */
.btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 13px 20px !important;
    border: 0 !important;
    cursor: pointer;
    -webkit-transition: background .15s, border-color .15s, box-shadow .2s; transition: background .15s, border-color .15s, box-shadow .2s;
    font-family: inherit !important;
}
.btn-block { display: block; width: 100%; }
.btn:hover { -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: default; }
.btn-primary { background: #e50914 !important; background: -webkit-linear-gradient(315deg, #e50914, #ff3b3b) !important; background: linear-gradient(135deg, #e50914, #ff3b3b) !important; color: #fff !important; box-shadow: 0 10px 26px rgba(229,9,20,.36) !important; }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(229,9,20,.5) !important; }
.btn-danger { background: rgba(255,255,255,.04) !important; color: #f4f6fb !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: none !important; }
.btn-danger:hover { background: rgba(255,255,255,.08) !important; }
.btn-danger small { color: #9aa3b4; }
.btn-dark { background: rgba(255,255,255,.06) !important; color: #f4f6fb !important; border: 1px solid rgba(255,255,255,.16) !important; direction: ltr; }

/* ---- Helpers ---- */
.box-form small, .text-muted { color: #9aa3b4 !important; font-size: 12.5px; display: inline-block; margin-top: 6px; line-height: 1.8; }
.box-form hr { border: 0; border-top: 1px solid rgba(255,255,255,.10); margin: 18px 0 !important; }
.box-form a { color: #ff3b3b; text-decoration: none; font-weight: 600; }
.box-form a:hover { color: #ff7a7a; }
.box-form a.btn:hover { color: #fff; }

.help-block, .help-block-error { color: #ff9ea2 !important; font-size: 13px; margin: 6px 0 0; }
.text-success { color: #5fd497 !important; }
.text-danger { color: #ff9ea2 !important; }

.alert { border-radius: 11px !important; padding: 12px 14px !important; font-size: 13.5px; line-height: 1.9; border: 1px solid rgba(255,255,255,.10); margin-bottom: 14px; }
.alert-warning { background: rgba(245,197,24,.12) !important; color: #f1d27a !important; border-color: rgba(245,197,24,.35) !important; }
.alert-success { background: rgba(33,163,90,.14) !important; color: #b7eccd !important; border-color: rgba(33,163,90,.4) !important; }

/* ---- Notices (replace the old inline-styled green/red boxes) ---- */
.au-note {
    border-radius: 11px !important; padding: 13px 16px !important; margin: 0 0 14px 0 !important;
    font-size: 14px; line-height: 1.95; text-align: center; font-weight: 400 !important;
    border: 1px solid rgba(255,255,255,.10) !important; background: rgba(255,255,255,.04) !important; color: #f4f6fb !important;
}
.au-note .au-note-title { display: block !important; font-size: 22px !important; font-weight: 800 !important; margin-bottom: 2px; }
.au-note strong, .au-note span { color: inherit; font-size: inherit; font-weight: 700; }
.au-note hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 8px 0 !important; }
.au-note p { margin: 6px 0 0; color: inherit !important; font-size: 13px; }
.au-note-success { background: rgba(33,163,90,.14) !important; color: #b7eccd !important; border-color: rgba(33,163,90,.4) !important; }
.au-note-error { background: rgba(229,9,20,.12) !important; color: #ff9ea2 !important; border-color: rgba(229,9,20,.4) !important; }
.au-note-info { background: rgba(245,197,24,.12) !important; color: #f1d27a !important; border-color: rgba(245,197,24,.4) !important; }

/* ---- AJAX response + loader (forgot) ---- */
#response:empty { display: none; }
#loader { text-align: center; padding: 10px 0; }
.au-spinner { width: 34px; height: 34px; margin: 6px auto; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: #e50914; -webkit-animation: au-spin .8s linear infinite; animation: au-spin .8s linear infinite; }
@-webkit-keyframes au-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes au-spin { to { transform: rotate(360deg); } }

/* ---- Secondary cards + footer ---- */
div.box-form {
    width: 100%; max-width: 900px; margin: 0 auto 16px auto !important; padding: 16px 22px !important;
    background: #14161d !important; background: rgba(20,22,30,.92) !important;
    border: 1px solid rgba(255,255,255,.10) !important; border-radius: 11px !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.4) !important; text-align: center; float: none !important;
}
body:not(.au-split) div.box-form { max-width: 460px; }
div.box-form div { color: #9aa3b4 !important; font-size: 13.5px; line-height: 2.1; }
div.box-form div[style*="daffb8"] { background: rgba(33,163,90,.14) !important; color: #b7eccd !important; border-radius: 10px; padding: 8px 10px !important; margin: 0 0 8px 0 !important; }

footer { width: 100%; max-width: 900px; text-align: center; color: #9aa3b4; }
body:not(.au-split) footer { max-width: 460px; }
.footer-menu { list-style: none; padding: 0; margin: 0 0 8px 0; }
.footer-menu li { display: inline-block; margin: 0 9px; }
.footer-menu a { color: #9aa3b4; font-size: 13px; font-weight: 600; }
.footer-menu a:hover { color: #f4f6fb; }
.footer-copyright { font-size: 12px; color: #5a6172; line-height: 1.8; }

/* ============================================================
   RESPONSIVE — stack the split card on small screens
   ============================================================ */
@media (max-width: 760px) {
    body.au-split main.box-form { -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; max-width: 460px; }
    body.au-split main.box-form > .-container { -webkit-order: 1; order: 1; padding: 28px 22px !important; }
    .au-hero { -webkit-order: 0; order: 0; -webkit-box-flex: 0; -webkit-flex: none; flex: none; padding: 22px 22px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
    .au-hero-feats { display: none; }
    .au-hero-art span:nth-child(3) { display: none; }
    div.box-form, footer { max-width: 460px; }
}
@media (max-width: 460px) {
    .-title { font-size: 21px !important; }
    .au-logo { font-size: 23px; }
}
