/* Classic public skin retained on the shared, security-hardened auth shell. */
:root {
    --Hdr: url("/assets/default/img/vip/header-rtl.png");
}

html,
body.auth-shell {
    min-height: 100%;
    margin: 0;
}

body.auth-shell {
    background: #fff;
}

body.auth-shell .wrapper {
    min-height: 100vh;
    background: url("/assets/default/img/vip/header-line.png") repeat-x top;
}

body.auth-shell div#dynamic_header {
    height: 100px;
    background: transparent var(--Hdr) center top no-repeat;
}

body.auth-shell div#header {
    height: 40px;
    border-bottom: 1px solid #aaa;
    background: linear-gradient(to bottom, #fff 0, #f9f9f9 45%, #dedede 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

body.auth-shell #mtop {
    position: relative;
    top: 9px;
    z-index: 2;
    font-size: 0;
    text-align: center;
}

body.auth-shell #mtop .InBar {
    display: inline-table;
    height: 30px;
    margin: 0 auto;
}

body.auth-shell #mtop .InBar a {
    display: inline-block;
    min-width: 62px;
    margin: 0 7px;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    text-decoration: none;
    text-shadow: 1px 1px 1px #fff;
}

body.auth-shell #mtop .InBar a:first-child {
    color: #a20327;
}

body.auth-shell #mtop .InBar a:hover,
body.auth-shell #mtop .InBar a:focus-visible {
    border-color: #cfcfcf;
    background: rgba(255, 255, 255, 0.72);
}

body.auth-shell #mid {
    padding-top: 25px;
}

body.auth-shell #content.login,
body.auth-shell #content.signup {
    min-height: 420px;
}

body.auth-shell #content h1 img {
    vertical-align: middle;
}

body.auth-shell #content h1 b {
    float: left;
    margin: 12px 0 0 10px;
    color: #666;
    font-size: 40px;
}

body.auth-shell #content :where(input.text, input[type="email"], input[type="number"]) {
    min-height: 27px;
    border-color: #71d000;
}

/* Widen the register / login text fields horizontally by a comfortable amount.
   The classic gpack default renders these narrow (~150px); a fixed 300px is
   roomier without overflowing the ~540px content column, and drops to full
   width on the narrow-screen breakpoint below. */
body.auth-shell #content :where(#sign_input, #login_form)
    :where(input.text, input[type="email"], input[type="password"], input[type="number"]) {
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

/* The password cell holds the eye-toggle button, so pad the input so text does
   not slide under it at the wider size. */
body.auth-shell #content .auth-password-cell {
    display: inline-block;
    width: 300px;
    max-width: 100%;
}

body.auth-shell #content .auth-password-cell input {
    width: 100%;
    padding-left: 30px;
}

body.auth-shell #content :where(input, button, select) {
    font: inherit;
}

body.auth-shell .auth-password-cell {
    position: relative;
}

body.auth-shell .auth-password-toggle {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    padding: 0;
    border: 0;
    color: #87927e;
    background: transparent;
    font-size: 12px;
    line-height: 22px;
    cursor: pointer;
}

body.auth-shell .auth-password-toggle:hover,
body.auth-shell .auth-password-toggle:focus-visible {
    color: #4a8d00;
    outline: 1px dotted #4a8d00;
}

body.auth-shell .auth-forgot-row {
    margin: -4px 0 7px;
    text-align: center;
}

body.auth-shell .auth-forgot-toggle {
    padding: 2px 8px;
    border: 0;
    color: #5ecb00;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.auth-shell .auth-forgot-toggle::before {
    content: "◂ ";
}

body.auth-shell .auth-forgot-panel {
    margin: 10px 20px;
    padding: 12px;
    border: 1px dashed #ccc;
    text-align: center;
}

body.auth-shell .auth-forgot-panel[hidden] {
    display: none;
}

body.auth-shell .auth-forgot-panel label {
    margin-left: 5px;
}

body.auth-shell .auth-classic-box {
    margin: 10px 0;
    padding: 10px;
    border: 1px dashed #ccc;
    text-align: center;
}

body.auth-shell .auth-classic-box legend,
body.auth-shell .auth-tribe-title {
    color: #f90;
    font-weight: 700;
}

body.auth-shell .auth-classic-box small {
    display: block;
    margin-top: 5px;
    color: #777;
}

body.auth-shell #content p.auth-reset-line {
    margin: 10px 0 0;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

body.auth-shell .auth-success {
    color: #2f7d00;
}

body.auth-shell .auth-guide-link,
body.auth-shell .checks a {
    color: #5ecb00;
    font-weight: 700;
}

body.auth-shell .auth-centered {
    text-align: center;
}

body.auth-shell .auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.auth-shell .auth-skip-link {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 1000;
    padding: 8px 12px;
    background: #fff;
    color: #111;
    transform: translateY(-150%);
}

body.auth-shell .auth-skip-link:focus {
    transform: translateY(0);
}

body.auth-shell .auth-card {
    width: 540px;
    max-width: calc(100% - 30px);
    margin: 20px auto;
    padding: 18px;
    border: 1px dashed #ccc;
    background: #fff;
}

body.auth-shell .auth-card__header h1 {
    margin-top: 0;
}

body.auth-shell .auth-form,
body.auth-shell .auth-field {
    display: grid;
    gap: 8px;
}

body.auth-shell .auth-form {
    gap: 14px;
}

body.auth-shell .auth-field input {
    min-height: 32px;
}

body.auth-shell .auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.auth-shell .auth-button {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid #71d000;
    border-radius: 4px;
    color: #555;
    background: linear-gradient(#fff, #e7e7e7);
    text-decoration: none;
}

@media (max-width: 760px) {
    body.auth-shell div#dynamic_header {
        height: 82px;
        background-size: auto 82px;
    }

    body.auth-shell #mtop .InBar {
        display: flex;
        justify-content: center;
        overflow-x: auto;
    }

    body.auth-shell #mtop .InBar a {
        min-width: auto;
        margin: 0 2px;
        padding-inline: 8px;
    }

    body.auth-shell #mid {
        width: auto;
        max-width: 620px;
        margin: 0 auto;
        padding: 15px 10px 30px;
    }

    body.auth-shell #side_navi {
        display: none;
    }

    body.auth-shell #content.login,
    body.auth-shell #content.signup {
        float: none;
        width: auto;
        min-height: 0;
        margin: 0 auto;
    }

    body.auth-shell #content :where(input.text, input[type="email"], input[type="password"], input[type="number"]) {
        max-width: 100%;
        min-height: 34px;
    }
}

/* ── Legal documents: game rules & privacy policy ───────────────────────── */
/* `#content.auth-legal` beats the classic gpack `#content { width }` rule. */
body.auth-shell #content.auth-legal {
    box-sizing: border-box;
    width: 760px;
    max-width: calc(100% - 24px);
    margin: 22px auto 40px;
    padding: 34px 40px 28px;
    float: none;
    background: #fff;
    border: 1px solid #e3e6e0;
    border-top: 4px solid #71d000;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    color: #33383a;
    line-height: 1.95;
    text-align: justify;
}

body.auth-shell .auth-legal-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef0ec;
    text-align: center;
}

body.auth-shell .auth-legal-heading h1 {
    margin: 0 0 12px;
    color: #3a7d00;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.4;
}

body.auth-shell .auth-legal-heading p {
    margin: 8px auto;
    max-width: 62ch;
    color: #6b7169;
    font-size: 14px;
    text-align: center;
}

body.auth-shell .auth-legal section {
    margin: 0 0 22px;
}

body.auth-shell .auth-legal section h2 {
    position: relative;
    margin: 0 0 12px;
    padding: 0 14px 0 0;
    color: #2f3a25;
    font-size: 18px;
    font-weight: 700;
}

/* Accent tab at the start (right, in RTL) of every section heading. */
body.auth-shell .auth-legal section h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(#8ede1f, #4a8d00);
}

body.auth-shell .auth-legal section p {
    margin: 0 0 10px;
    color: #40453f;
    font-size: 14.5px;
}

body.auth-shell .auth-legal section p strong {
    color: #2f3a25;
    font-weight: 700;
}

body.auth-shell .auth-legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.auth-shell .auth-legal ul li {
    position: relative;
    margin: 0 0 9px;
    padding-inline-start: 24px;
    color: #40453f;
    font-size: 14.5px;
}

/* Custom check-style bullet, RTL-aware via logical inset. */
body.auth-shell .auth-legal ul li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: #5aa700;
    font-weight: 700;
    font-size: 13px;
}

body.auth-shell .auth-legal-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eef0ec;
    color: #6b7169;
    font-size: 13.5px;
    text-align: center;
}

body.auth-shell .auth-legal-footer p {
    margin: 6px 0;
}

body.auth-shell .auth-legal-footer a,
body.auth-shell .auth-legal a {
    color: #4a8d00;
    font-weight: 700;
    text-decoration: none;
}

body.auth-shell .auth-legal-footer a:hover,
body.auth-shell .auth-legal a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    body.auth-shell #content.auth-legal {
        padding: 22px 18px 20px;
        line-height: 1.85;
    }
    body.auth-shell .auth-legal-heading h1 {
        font-size: 23px;
    }
}

@media (forced-colors: active) {
    body.auth-shell #content input,
    body.auth-shell .auth-card,
    body.auth-shell .auth-classic-box {
        border: 1px solid CanvasText;
    }
}
