/* chatpersian.info (2026-11-15): the owner's own login template (chatpersianme.zip, login.css), loaded only by
   theme/theme50responsive/login-chatpersian.php. Image paths point at images/chatpersian/; the last block only
   neutralises the chat engine's generic login styles (body background, BYekan, block labels) on this one page. */
:root {
    --theme-width: 700px;
    --theme-text: #fff;
    --theme-radius: 7px;
}

body {
    margin: 0;
    background-image: url(/theme/theme50responsive/images/chatpersian/cp-bg.jpg);
    font-family: Tahoma;
    font-size: 12px;
}

.theme-width {
    width: var(--theme-width);
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    height: 150px;
    margin-top: 20px;
    background-image: url(/theme/theme50responsive/images/chatpersian/cp-header.png);
}

/* Retain the original menu overlap and desktop spacing. */
.navigation-wrap {
    text-align: center;
}

.site-navigation {
    height: 10px;
    margin-top: 20px;
}

.navigation-bar {
    width: 100%;
    height: 27px;
    background: #000 url(/theme/theme50responsive/images/chatpersian/login.bg-2.gif) left top repeat-x;
}

.navigation-list {
    display: flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-list li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent url(/theme/theme50responsive/images/chatpersian/login.bg-3.gif) left top no-repeat;
}

.navigation-list a {
    display: block;
    height: 27px;
    padding-left: 20px;
    color: var(--theme-text);
    font-family: Tahoma;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
}

.navigation-list a span {
    display: block;
    height: 21px;
    padding-top: 5px;
    padding-right: 35px;
    background: transparent url(/theme/theme50responsive/images/chatpersian/login.bg-3.gif) right top no-repeat;
    text-shadow: 2px 2px #000;
    cursor: pointer;
}

.navigation-list a:hover,
.navigation-list a:hover span,
.navigation-list .active a,
.navigation-list .active a span {
    background: transparent;
}

.login-panel {
    min-height: 480px;
    margin-bottom: 10px;
    padding-top: 20px;
    background: url(/theme/theme50responsive/images/chatpersian/login.box.png) left top / 100% 100% no-repeat;
    font-size: 11px;
}

.login-intro,
.login-form-box,
.login-rules {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    direction: rtl;
    color: var(--theme-text);
}

.login-intro {
    height: 25px;
    margin-top: 0;
    margin-bottom: 11px;
    padding: 3px 0 5px;
    text-align: center;
    line-height: 160%;
}

.login-form-box {
    padding: 10px 0;
    border: 1px solid #ccc;
    border-radius: var(--theme-radius);
    box-shadow: 3px 3px 4px #000;
    text-align: center;
}

.form-row {
    margin-bottom: 13px;
}

.login-form-box input[type="text"],
.login-form-box input[type="password"],
.login-form-box select {
    box-sizing: border-box;
    max-width: 100%;
}

.captcha-field {
    margin-top: 10px;
}

.captcha-input {
    position: relative;
    width: 100px;
}

.login-submit {
    width: 100px;
    font-family: Tahoma;
    font-size: 10pt;
}

.login-status {
    margin: 10px 12px 0;
    line-height: 1.8;
}

.login-status[hidden] {
    display: none;
}

.login-rules {
    padding: 10px 0;
    text-align: right;
    line-height: 170%;
}

.online-wrap,
.online-table td,
.online-count-content {
    text-align: center;
}

.online-table {
    width: 300px;
    margin: 0 auto;
    border: 0;
}

.online-count {
    display: table;
    width: 80%;
    margin: auto;
    direction: rtl;
    color: var(--theme-text);
}

.online-count-box,
#amar_box_l {
    float: right;
    height: 102px;
    margin: auto;
    padding: 3px 35px 3px 3px;
    border: 1px solid #999;
    border-radius: var(--theme-radius);
    background: transparent url(/theme/theme50responsive/images/chatpersian/login.online.png) right top no-repeat;
}

.online-count-box {
    width: 264px;
}

.online-count-frame {
    display: inline-block;
    width: 100%;
    max-width: 264px;
    height: 50px;
    border: 0;
}

.visitor-notice {
    position: fixed;
    bottom: 5px;
    left: 2px;
    z-index: 1000;
}

.visitor-notice-content {
    padding: 12px 14px;
    border-radius: 8px;
    background: #9c54c2;
    color: #000;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    line-height: 20px;
    text-align: right;
    overflow-wrap: anywhere;
}

.footer-gap {
    height: 56px;
}

.seo-footer {
    text-align: center;
}

.seo-footer-content,
.seo-keywords {
    margin-top: 15px;
}

.seo-footer-body {
    font-size: 6px;
}

.seo-title-primary {
    font-size: 13px;
}

.seo-title-secondary {
    font-size: 12px;
}

.seo-title-small {
    font-size: 8px;
}

.seo-keywords {
    margin-bottom: 6px;
    font-size: 8px;
}

.seo-keywords-label,
.seo-keywords-links {
    font-family: Byekan;
}

.seo-keywords-label {
    color: #ddd;
}

@media (max-width: 723px) {
    .theme-width {
        width: calc(100% - 24px);
    }

    .site-header {
        height: auto;
        aspect-ratio: 700 / 150;
        /* The artwork is 800px wide; desktop shows the first 700px. */
        background-size: 114.285714% auto;
        background-repeat: no-repeat;
    }

    .site-navigation {
        height: auto;
        margin-bottom: 12px;
    }

    .navigation-break {
        display: none;
    }

    .navigation-bar {
        height: auto;
        background-size: auto 100%;
    }

    .navigation-list {
        flex-wrap: wrap;
    }

    .navigation-list li {
        flex: 1 0 auto;
        min-width: 0;
        background-size: auto 100%;
    }

    .navigation-list a {
        height: auto;
        min-height: 44px;
        padding: 0;
    }

    .navigation-list a span {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: auto;
        min-height: 44px;
        padding: 5px 10px;
        background-size: auto 100%;
    }

    .login-panel {
        padding-bottom: 16px;
    }

    .login-intro {
        height: auto;
        min-height: 25px;
    }

    .login-form-box {
        box-sizing: border-box;
        padding-right: 10px;
        padding-left: 10px;
    }

    #username,
    #password,
    .captcha-input {
        width: 220px;
        min-height: 40px;
        font-family: Tahoma;
        font-size: 16px;
    }

    #gender {
        min-height: 40px;
        font-size: 16px;
    }

    .login-submit {
        min-height: 44px;
        max-width: 100%;
    }

    .captcha-field {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .captcha-field img {
        max-width: 100%;
        height: auto;
    }

    .online-table {
        width: 90%;
        max-width: 310px;
        table-layout: fixed;
    }

    .online-count {
        display: block;
        width: 100%;
    }

    .online-count-box {
        box-sizing: border-box;
        float: none;
        width: 100%;
        height: auto;
        min-height: 110px;
    }

    .visitor-notice {
        position: static;
        width: fit-content;
        max-width: 90%;
        margin: 12px auto 0;
    }

    .login-rules,
    .seo-footer {
        overflow-wrap: anywhere;
    }

    .seo-footer {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .navigation-list li {
        flex: 0 0 33.333333%;
    }

    .navigation-list a span {
        padding-right: 5px;
        padding-left: 5px;
    }

    label[for="username"],
    label[for="password"] {
        display: block;
        margin-bottom: 6px;
    }
}

/* ---- this page only: undo the engine's generic login.css where it differs from the template ---- */
html body.cp-page {
    margin: 0;
    background-color: #201027;
    background-image: url(/theme/theme50responsive/images/chatpersian/cp-bg.jpg);
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto;
    background-attachment: scroll;
    font-family: Tahoma;
    font-size: 12px;
    text-align: left;
}
html body.cp-page .login-form-box label { display: inline; }
html body.cp-page #form { position: static; float: none; width: auto; background: transparent; margin: 0; }
html body.cp-page #lay_pw, html body.cp-page #lay_security_question, html body.cp-page #lay_hide, html body.cp-page #lay_captcha,
html body.cp-page #lay_gender { position: static; float: none; width: auto; clear: both; }
html body.cp-page .captcha-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #ccc; border-radius: var(--theme-radius); color: var(--theme-text); cursor: pointer; }
html body.cp-page .captcha-check input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
html body.cp-page .captcha-error { display: none; margin-top: 6px; color: #ffb3c0; }
html body.cp-page .online-count-text { margin: 0; color: #ff0000; font-family: Tahoma; font-size: 12px; line-height: 20px; }
@media (max-width: 480px) {
    html body.cp-page .login-form-box label[for="username"], html body.cp-page .login-form-box label[for="password"] { display: block; }
}

/* the chat engine's login.css styles every <nav> (90px items, a red line, its own phone layout); undo that for this menu */
html body.cp-page nav.site-navigation { background: none; border-bottom: 0; font-size: inherit; font-family: inherit; position: static; }
html body.cp-page nav .navigation-list { height: auto; border-bottom: 0; width: auto; }
html body.cp-page nav .navigation-list li { float: none; width: auto; position: static; }
html body.cp-page nav .navigation-list li a { width: auto; line-height: normal; border: 0; box-sizing: content-box; text-indent: 0; text-align: center; text-shadow: none; }
@media (max-width: 723px) {
    html body.cp-page nav .navigation-list { display: flex; }
    html body.cp-page nav .navigation-list li { display: block; }
}

/* the template gives the button a fixed 100px, which cuts its text; let it fit the whole button text is shown */
html body.cp-page .login-submit { width: auto; min-width: 100px; padding: 2px 12px; }

/* keep a little room under the tick box */
html body.cp-page #lay_captcha { margin-bottom: 12px; }
