/* Auth and registration dialog styles. */
.auth_warning,
.phone_access_hint {
    display:none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(18, 214, 207, .28);
    border-radius: 8px;
    background: rgba(18, 214, 207, .08);
    color: var(--game-interactive);
    line-height: 1.35;
    text-align: center;
    font-size: 14px;
}

.auth_warning.auth_error {
    border-color: rgba(255, 77, 109, .35);
    background: rgba(255, 77, 109, .08);
    color: var(--game-error);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    border: 1px solid rgba(22, 209, 195, .24);
    border-radius: 8px;
    background: rgba(4, 18, 41, .64);
}

#LoginForm .mdc-dialog__surface {
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
}

#LoginForm .mdc-dialog__content {
    box-sizing: border-box;
    overflow-x: hidden;
}

.auth-dialog-form {
    width: 100%;
    box-sizing: border-box;
}

.auth-is-hidden {
    display: none;
}

.auth-context-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 196, 0, .28);
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 196, 0, .08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

#LoginForm .mdc-text-field,
#LoginForm .mdc-text-field--filled,
#LoginForm .mdc-text-field--outlined {
    background: rgba(5, 21, 45, .62) !important;
    overflow: visible !important;
    position: relative;
}

#LoginForm .mdc-text-field__input {
    color: #ffffff !important;
    background: transparent !important;
    caret-color: var(--game-interactive, #00e5ff);
}

#LoginForm .mdc-text-field__input::placeholder {
    color: rgba(255, 255, 255, .42) !important;
}

#LoginForm .mdc-floating-label {
    position: absolute !important;
    top: 50% !important;
    left: 52px !important;
    z-index: 3;
    display: block !important;
    color: rgba(255, 255, 255, .72) !important;
    max-width: calc(100% - 72px) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    transform-origin: left top;
    transform: translateY(-50%) !important;
    transition:
        top .18s ease,
        left .18s ease,
        transform .18s ease,
        opacity .14s ease,
        color .18s ease;
    pointer-events: none;
}

#LoginForm .login_widget {
    position: relative;
    padding-top: 8px;
}

#LoginForm .auth-field-caption {
    display: none !important;
}

#LoginForm .login_widget .mdc-floating-label {
    opacity: 1 !important;
    visibility: visible !important;
}

#LoginForm .login_widget .mdc-floating-label--float-above {
    top: -7px !important;
    left: 14px !important;
    max-width: calc(100% - 28px) !important;
    padding: 0 6px;
    overflow: visible;
    text-overflow: clip;
    font-size: 12px;
    line-height: 1;
    color: rgba(0, 229, 255, .92) !important;
    background: #0d1424;
    transform: none !important;
}

#LoginForm .login_widget.auth-field-has-value .mdc-notched-outline__notch,
#LoginForm .login_widget.auth-field-is-focused .mdc-notched-outline__notch {
    border-top-color: rgba(0, 229, 255, .26) !important;
    width: auto !important;
    max-width: none !important;
    padding-left: 0;
    padding-right: 0;
}

#LoginForm .login_widget .mdc-notched-outline__notch {
    position: static !important;
}

#LoginForm .login_widget .text-input-with-left-icon {
    padding-left: 52px !important;
}

#LoginForm .mdc-text-field__icon,
#LoginForm .mdc-text-field__icon--leading,
#LoginForm .material-symbols-outlined {
    color: rgba(255, 255, 255, .72) !important;
}

#LoginForm .mdc-line-ripple::before,
#LoginForm .mdc-line-ripple::after {
    border-bottom-color: rgba(0, 229, 255, .45) !important;
}

#LoginForm .mdc-notched-outline__leading,
#LoginForm .mdc-notched-outline__notch,
#LoginForm .mdc-notched-outline__trailing {
    border-color: rgba(0, 229, 255, .26) !important;
}

#LoginForm .mdc-notched-outline,
#LoginForm .mdc-notched-outline__leading,
#LoginForm .mdc-notched-outline__notch,
#LoginForm .mdc-notched-outline__trailing {
    overflow: visible !important;
}

#LoginForm input:-webkit-autofill,
#LoginForm input:-webkit-autofill:hover,
#LoginForm input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgb(7 19 39) inset !important;
    transition: background-color 9999s ease-out 0s;
}

.auth-tab {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.auth-tab.is-active {
    color: #061220;
    background: linear-gradient(135deg, var(--game-prize), #ffe872);
    box-shadow: 0 0 18px rgba(255, 187, 0, .22);
}

.auth-register-panel .login_widget,
.auth-login-panel .login_widget {
    margin-bottom: 10px;
}

.auth-agreement .mdc-form-field {
    align-items: flex-start;
}

.auth-agreement label {
    line-height: 1.35;
}

.link_href {
    color: rgba(255, 255, 255, 0.71);
    border-bottom: 1px solid #ffffff5c;
}

.auth_active {
    color: gold;
    background-color: #03326a!important;
}
