/* Dark auth screens for login and register. */

html.player-theme,
body.player-theme {
    background: #010806 !important;
    color: #f5f7f3;
}

body.player-theme .mian.login.auth-screen,
body.player-theme .mian.register.auth-screen {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    min-height: 100vh;
    margin: 0 auto !important;
    padding-top: 0 !important;
    background: #010806 !important;
    color: #e8f5ee !important;
    box-shadow: none !important;
    color-scheme: dark;
}

body.player-theme .mian.auth-screen .auth-bar {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #f4f7f5;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

body.player-theme .mian.auth-screen .auth-line {
    height: 2px;
    background: linear-gradient(90deg, #1ec86a 0%, #d6ef4a 100%);
}

body.player-theme .mian.auth-screen .auth-body {
    box-sizing: border-box;
    padding: 8px 20px 40px;
}

body.player-theme .mian.auth-screen .auth-title {
    display: inline-block;
    margin: 18px 0 22px;
    color: #3ee07a !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

body.player-theme .mian.auth-screen .auth-title:after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: #3ee07a;
}

body.player-theme .mian.auth-screen [hidden],
body.player-theme .mian.auth-screen .auth-field[hidden],
body.player-theme .mian.auth-screen .auth-lab[hidden] {
    display: none !important;
}

body.player-theme .mian.auth-screen .auth-lab {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #ddb85d !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

body.player-theme .mian.auth-screen .auth-lab svg,
body.player-theme .mian.auth-screen .auth-lab img {
    width: 18px;
    height: 18px;
    flex: none;
    color: #ddb85d;
    object-fit: contain;
}

body.player-theme .mian.auth-screen .mian-from .auth-field[hidden] {
    display: none !important;
}

body.player-theme .mian.auth-screen .mian-from .auth-field {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 0 18px !important;
    padding: 0 12px !important;
    overflow: visible !important;
    position: relative;
    border: 0 !important;
    border-radius: 12px !important;
    background: #052922 !important;
    line-height: normal !important;
}

body.player-theme .mian.auth-screen .mian-from .auth-field:focus-within {
    border-color: #3ee07a !important;
}

body.player-theme .mian.auth-screen .auth-phone {
    z-index: 5;
    padding-left: 0 !important;
    gap: 0;
}

body.player-theme .mian.auth-screen .auth-phone .number {
    position: static !important;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    line-height: 1 !important;
    left: auto !important;
    top: auto !important;
    color: inherit !important;
}

body.player-theme .mian.auth-screen .dial {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

body.player-theme .mian.auth-screen .dial-btn {
    display: flex;
    align-items: center;
    height: 46px;
    border: 0;
    border-right: 1px solid #314038;
    border-radius: 0;
    background: transparent !important;
    background-image: none !important;
    color: #f4f7f5 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 0 18px 0 14px;
    cursor: pointer;
}

body.player-theme .mian.auth-screen .dial-btn:after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    margin-top: -4px;
    border-right: 1.6px solid #ddb85d;
    border-bottom: 1.6px solid #ddb85d;
    transform: rotate(45deg);
}

body.player-theme .mian.auth-screen .dial-btn[aria-expanded="true"]:after {
    margin-top: 2px;
    transform: rotate(225deg);
}

body.player-theme .mian.auth-screen .dial-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 220px;
    max-height: 240px;
    margin: 0;
    padding: 6px 0;
    overflow: auto;
    list-style: none;
    background: #171c19 !important;
    border: 1px solid #2f6b45 !important;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

body.player-theme .mian.auth-screen .dial-list[hidden] {
    display: none !important;
}

body.player-theme .mian.auth-screen .dial-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    color: #e8f5ee !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

body.player-theme .mian.auth-screen .dial-list li span {
    color: #3ee07a !important;
    font-weight: 700;
}

body.player-theme .mian.auth-screen .dial-list li[aria-selected="true"],
body.player-theme .mian.auth-screen .dial-list li:hover {
    background: #163524 !important;
}

body.player-theme .mian.auth-screen .auth-field input,
body.player-theme .mian.auth-screen .auth-phone input,
body.player-theme .mian.auth-screen .pw-input {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 4px 0 12px !important;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: #e8f5ee !important;
    font-size: 16px !important;
    line-height: 46px !important;
    caret-color: #3ee07a;
}

body.player-theme .mian.auth-screen .auth-field input::placeholder {
    color: #6e8076 !important;
}

body.player-theme .mian.auth-screen input:-webkit-autofill {
    -webkit-text-fill-color: #e8f5ee !important;
    caret-color: #3ee07a;
    box-shadow: 0 0 0 1000px #141816 inset !important;
}

body.player-theme .mian.auth-screen .auth-eye {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8ea497;
    cursor: pointer;
}

body.player-theme .mian.auth-screen .auth-eye svg {
    width: 22px;
    height: 22px;
    display: block;
}

body.player-theme .mian.auth-screen .auth-eye .eye-open {
    display: none;
}

body.player-theme .mian.auth-screen .auth-eye.is-on .eye-off {
    display: none;
}

body.player-theme .mian.auth-screen .auth-eye.is-on .eye-open {
    display: block;
}

body.player-theme .mian.auth-screen .auth-terms {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 2px 0 22px;
}

body.player-theme .mian.auth-screen .van-checkbox {
    overflow: visible;
}

body.player-theme .mian.auth-screen .van-checkbox__icon {
    height: 18px !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

body.player-theme .mian.auth-screen .van-checkbox__icon .van-icon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 1.5px solid #8aa098 !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

body.player-theme .mian.auth-screen .van-checkbox__icon--checked .van-icon {
    background: transparent !important;
    border-color: #ddb85d !important;
    color: #ddb85d !important;
}

body.player-theme .mian.auth-screen .mian-from .agree {
    height: auto !important;
    color: #d7e4dc !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

body.player-theme .mian.auth-screen .auth-privacy {
    color: #fb5b5b !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

body.player-theme .mian.auth-screen .mian-btn {
    margin: 0;
}

body.player-theme .mian.auth-screen .mian-btn .auth-submit {
    width: 100% !important;
    max-width: none;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ddb85d 0%, #f2ce72 100%) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 50px !important;
    letter-spacing: 0.01em;
}

body.player-theme .mian.auth-screen .mian-btn .auth-submit span,
body.player-theme .mian.auth-screen .mian-btn .auth-submit .van-button__text {
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 50px !important;
}

body.player-theme .mian.auth-screen .auth-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    margin-top: 14px;
    border: 1px solid #ddb85d;
    border-radius: 999px;
    background: transparent;
    color: #f5f7f3;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
}

body.player-theme .mian.auth-screen .auth-alt strong {
    margin-left: 6px;
    color: #ddb85d;
    font-weight: 700;
}

body.player-theme .mian.auth-screen .auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
}

body.player-theme .mian.auth-screen .auth-links a {
    color: #3ee07a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

body.player-theme .mian.auth-screen .auth-sep {
    width: 1px;
    height: 12px;
    background: #3d4f46;
}

body.player-theme .mian.auth-screen .auth-top {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #06382c 0%, #021610 100%);
}

body.player-theme .mian.auth-screen .auth-back {
    position: absolute;
    left: 8px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
    padding: 0 8px;
}

body.player-theme .mian.auth-screen .auth-brand {
    color: #e7c56a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.player-theme .dm-login .auth-hero {
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #0e6b45 0%, #084a30 100%);
    color: #fff;
}

body.player-theme .dm-login .auth-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

body.player-theme .dm-login .auth-hero p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #e8f5ee;
}

body.player-theme .dm-login .auth-body {
    padding-top: 16px;
}

body.player-theme .dm-login .auth-tabs {
    display: flex;
    margin: 0 0 18px;
    border-bottom: 1px solid #1c3a32;
}

body.player-theme .dm-login .auth-tabs button {
    flex: 0 0 auto;
    padding-right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    margin: 0;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #f5f7f3;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

body.player-theme .dm-login .auth-tabs button img,
body.player-theme .dm-login .auth-tabs button svg {
    width: 18px;
    height: 18px;
}

body.player-theme .dm-login .auth-tabs button.on {
    border-bottom-color: #ddb85d;
    color: #ddb85d;
}

body.player-theme .mian.auth-screen .auth-lang {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f5f7f3;
    font-size: 13px;
    font-weight: 700;
}

body.player-theme .mian.auth-screen .auth-lang img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

body.player-theme .mian.register .auth-reg-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 18px 0 8px;
}

body.player-theme .mian.register .auth-reg-head img {
    align-self: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

body.player-theme .mian.register .auth-title {
    display: block;
    margin: 0 0 10px;
    color: #ddb85d !important;
    font-size: 20px;
    text-align: center;
}

body.player-theme .mian.register .auth-title:after {
    width: 100%;
    height: 1px;
    margin-top: 12px;
    border-radius: 0;
    background: #ddb85d;
}

body.player-theme .mian.register .auth-note {
    margin: 8px 0 18px;
    color: #e7d7a4;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

body.player-theme .mian.auth-screen .auth-eye img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

body.player-theme .dm-login .auth-lab.gold,
body.player-theme .dm-login .auth-lab.gold svg {
    color: #e7c56a !important;
}

body.player-theme .mian.auth-screen .auth-phone-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

body.player-theme .mian.auth-screen .auth-code,
body.player-theme .mian.auth-screen .auth-phone-row .auth-field {
    height: 48px;
    border-radius: 12px;
    background: #052922;
    border: 0;
}

body.player-theme .mian.auth-screen .auth-code .dial-btn {
    border-right: 0;
}

body.player-theme .mian.auth-screen .auth-code {
    flex: 0 0 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.player-theme .mian.auth-screen .auth-phone-row .auth-field {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

body.player-theme .mian.auth-screen .auth-phone-row input,
body.player-theme .mian.auth-screen .auth-pass input {
    width: 100% !important;
    font-size: 14px !important;
    min-width: 0;
}

body.player-theme .dm-login .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -4px 0 18px;
    font-size: 13px;
}

body.player-theme .dm-login .auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c5d5cb;
}

body.player-theme .dm-login .auth-remember input {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #8aa098;
    border-radius: 50%;
    background: transparent;
}

body.player-theme .dm-login .auth-remember input:checked {
    border-color: #ddb85d;
    box-shadow: inset 0 0 0 4px #010806, inset 0 0 0 8px #ddb85d;
}

body.player-theme .dm-login .auth-email-row {
    margin-bottom: 18px !important;
}

body.player-theme .dm-login .auth-row a {
    color: #e7c56a;
    text-decoration: none;
}

body.player-theme .dm-login #submit.auth-submit {
    background: #8d9691 !important;
    color: #fff !important;
}

body.player-theme .dm-login #submit.auth-submit span,
body.player-theme .dm-login #submit.auth-submit .van-button__text {
    color: #fff !important;
}

body.player-theme .dm-login #submit.auth-submit.is-ready {
    background: linear-gradient(90deg, #ddb85d, #f2ce72) !important;
    color: #fff !important;
}

body.player-theme .dm-login .auth-register {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: 14px;
    border: 1px solid #ddb85d;
    border-radius: 999px;
    color: #ddb85d;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

#lang-switch {
    top: 12px !important;
    bottom: auto !important;
    right: max(12px, calc(50% - 203px)) !important;
}

#lang-switch button.active {
    background: #22c55e !important;
    color: #0b0d0c !important;
}

@media (max-width: 430px) {
    body.player-theme .mian.login.auth-screen,
    body.player-theme .mian.register.auth-screen {
        max-width: none;
    }

    #lang-switch {
        right: 10px !important;
    }
}
