﻿/*Main page*/

.main__part{
    margin-top:50px;
}

.head__part {
    display: grid;
    grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr);
    grid-template-rows: 1fr;
    padding: 25px;
}

.main__logo_landing{
    width: clamp(300px,50vw,400px);
    padding-top:40px;
}

.settings{
    display:flex;
    justify-content:flex-start;
}

/*Language selector*/
.language-selector {
    position: relative;
    width: 68px;
    height: 48px;

    display:flex;
    justify-content:center;
}

.selected-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.flag-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

    .flag-dropdown img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
        margin: 5px;
    }

    .flag-dropdown.show {
        display: flex;
        flex-direction: column;
    }
/*End*/

.log__in {
    display: flex;
    justify-content: flex-end;
    height: fit-content;
}

.log__in_text:before {
    content: "ВОЙТИ ИЛИ ЗАРЕГИСТРИРОВАТЬСЯ"
}
.aqua-text {
    color: #43c3bc !important;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    padding: 8px 16px;
    background-color: #41CAC2;
    border-radius: 15px;
    gap: 5px;
    height: 50px;
    width: clamp(280px, 15vw, 320px) !important;
}

.button > span {
    font-weight: 600;
    font-size: 14px
}


.button:hover {
    transform: translateY(4px);
    box-shadow: 0px 0px 0px #2c8f89;
}





.button__landing{
    padding:12px 16px;
}

.button__play {
    height: 55px;
}

.button__play:hover {
color:white;

}

.button__play {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    width: fit-content;
    border-radius: 8px;
    background-color: #41CAC2;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 0px #2c8f89;
    transition: .1s all ease-in-out;
}

.button:active {
    transform: scale(0.95);
}


.ctr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.field_wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    width:100%;
}


.play__field {
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction: row;
    gap: 10px;
    padding: 16px;
    background: #00000061;
    border-radius: 15px;

    width: clamp(320px, 50vw, 420px);
}

.play__field > form{
    width:100%;
    gap:20px;

    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
}

    .play__field > * > *, .play__field > *{
        font-weight:900;
    }
    .play__field > button{
        padding: 16px 24px;
    }

.input__name_wrapper, .input__password_wrapper, .checkbox__wrapper, .input__email_wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 85%;
}

.validator_error{
    color:red;
}

.input__name, .input__name:active, .input__email, .input__email:active, .input__password, .inpuit__code .input__password:active {
    text-transform: uppercase;
    background: #00000061;
    padding: 12px 12px 8px;
    text-align: center;
    border-radius: 15px;
    font-weight: 900;
    border: none;
    color: white;
    outline: none;
    font-size: clamp(0.9rem,2.1vw,1.1rem);
    width: 100%;
}
.deafault__modes{
    display:flex;
    flex-direction:row;
    padding:12px;
    gap:12px
}

.fw700 {
    font-weight: 700;
}


.google__login {
    margin-block: 20px;
}

/*.google__login > * > * > * > *  {
    background-color: transparent;
    border-color: transparent !important;
}*/

.nsm7Bb-HzV7m-LgbsSe{

    border-radius:7px !important;
}
.nsm7Bb-HzV7m-LgbsSe-BPrWId{
    color: white;
}


.container {
    max-width: 480px;
}


.violet {
    background-color: #c021c3;
}

.aqua {
    background-color:#41CAC2;
}

.red {
    background-color: #a52f2f;
}

/*Login field*/
.register-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:20px;

    width:100%;
}

.redirect-to-login{
color:white;
font-size:clamp(0.85rem,2.1vw,1.1rem);
}


.validation-summary-errors > *{
    list-style:none;
    text-align:center;

    margin:0;
    padding:0;
}
/*Checkbox*/
.checkbox {
    display: flex;
    justify-content: left;
}

.checkbox-label {
    color: white;
    margin-left: 15px;
    font-weight: 600;
    font-size: clamp(0.85rem,2.1vw,1.1rem);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox-wrapper-12 {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px; /* Adjust spacing as needed */
    filter: invert(61%) sepia(95%) saturate(288%) hue-rotate(127deg) brightness(96%) contrast(87%) !important;
}

    .checkbox-wrapper-12 > svg {
        display: none; /* Hide the SVG filter definition */
    }

    .checkbox-wrapper-12 * {
        box-sizing: border-box;
    }

    .checkbox-wrapper-12 input[type="checkbox"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        margin: 0;
    }

        .checkbox-wrapper-12 input[type="checkbox"]:focus {
            outline: 0;
        }

    .checkbox-wrapper-12 .cbx {
        width: clamp(18px, 3vw, 24px);
        height: calc(clamp(18px, 3vw, 24px) - 1px);
        position: relative;
    }

        .checkbox-wrapper-12 .cbx input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: calc(100% + 1px);
            border: 2px solid #bfbfc0;
            border-radius: 50%;
        }

        .checkbox-wrapper-12 .cbx label {
            width: 100%;
            height: calc(100% + 1px);
            background: none;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            -webkit-filter: url("#goo-12");
            filter: url("#goo-12");
            transform: translate3d(0, 0, 0);
            pointer-events: none;
        }

        .checkbox-wrapper-12 .cbx svg {
            position: absolute;
            top: 25%;
            left: 25%;
            width: 50%;
            height: calc(50% + 1px);
            z-index: 1;
            pointer-events: none;
        }

            .checkbox-wrapper-12 .cbx svg path {
                stroke: #fff;
                stroke-width: 3;
                stroke-linecap: round;
                stroke-linejoin: round;
                stroke-dasharray: 19;
                stroke-dashoffset: 19;
                transition: stroke-dashoffset 0.3s ease;
                transition-delay: 0.2s;
            }

        .checkbox-wrapper-12 .cbx input:checked + label {
            animation: splash-12 0.6s ease forwards;
        }

            .checkbox-wrapper-12 .cbx input:checked + label + svg path {
                stroke-dashoffset: 0;
            }

.checkbox-label {
    flex: 1; /* Allows the label to take up remaining space */
}

@-moz-keyframes splash-12 {
    40% {
        background: #866efb;
        box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }

    100% {
        background: #866efb;
        box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
}

@-webkit-keyframes splash-12 {
    40% {
        background: #866efb;
        box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }

    100% {
        background: #866efb;
        box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
}

@-o-keyframes splash-12 {
    40% {
        background: #866efb;
        box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }

    100% {
        background: #866efb;
        box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
}

@keyframes splash-12 {
    40% {
        background: #866efb;
        box-shadow: 0 -18px 0 -8px #866efb, 16px -8px 0 -8px #866efb, 16px 8px 0 -8px #866efb, 0 18px 0 -8px #866efb, -16px 8px 0 -8px #866efb, -16px -8px 0 -8px #866efb;
    }

    100% {
        background: #866efb;
        box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
    }
}




.other_wrapper{
    margin-top:30px;
    margin-bottom:-10px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}

.other_wrapper > span {
    width: 500px;
    margin: 0;
    color: grey;
    width:fit-content;
    font-weight:700;
}

.other_wrapper > hr{
    color:grey;
    width:300px;
    margin:0;
    height:2px;

}
/*Media requests*/
@media(max-width:1150px) {

    .modal-dialog-centered.modal-dialog-scrollable .modal-content {
        width: 90vw !important;
    }
    .log__in_text:before {
        content: "ВОЙТИ"
    }
    .play__field {
        gap: 0;
    }

}

@media(max-width:400px){
    .play__field{
        gap:0;
    }

    .input__name, .input__name:active{
        width:100%;
    }
}

/* 2FA Form Specific Styles - prefixed to avoid conflicts */
.twofa-container {
    position: relative;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: twofaFormReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    margin: 50px auto;
}

    .twofa-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: twofaShimmer 4s ease-in-out infinite;
    }

@keyframes twofaFormReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes twofaShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.twofa-title {
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    background: linear-gradient(45deg, #41CAC2, #c021c3, #866efb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: twofaGradientFlow 3s ease infinite, twofaTitleFade 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes twofaGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes twofaTitleFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.twofa-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.twofa-input-wrapper {
    position: relative;
    animation: twofaInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes twofaInputSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.twofa-input {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

    .twofa-input:focus {
        border-color: #41CAC2;
        background: rgba(65, 202, 194, 0.1);
        box-shadow: 0 0 0 4px rgba(65, 202, 194, 0.1), 0 0 20px rgba(65, 202, 194, 0.2);
        transform: translateY(-2px);
    }

    .twofa-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 2px;
    }

.twofa-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #41CAC2, #866efb);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: twofaInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
    box-shadow: 0 10px 25px rgba(65, 202, 194, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .twofa-submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .twofa-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(65, 202, 194, 0.4);
    }

        .twofa-submit-btn:hover::before {
            left: 100%;
        }

    .twofa-submit-btn:active {
        transform: translateY(-1px);
    }

    .twofa-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.twofa-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    animation: twofaErrorShake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

@keyframes twofaErrorShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.twofa-loading {
    display: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 15px;
}

    .twofa-loading .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid #41CAC2;
        border-radius: 50%;
        animation: twofaSpin 1s linear infinite;
        display: inline-block;
        margin-right: 10px;
    }

@keyframes twofaSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.twofa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #41CAC2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    animation: twofaInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

    .twofa-back-link:hover {
        color: #c021c3;
        transform: translateX(-5px);
    }

.twofa-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    animation: twofaInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

/* Code input auto-formatting */
.twofa-input.code-input {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    letter-spacing: 12px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .twofa-container {
        margin: 20px;
        padding: 32px 24px;
    }

    .twofa-title {
        font-size: 24px;
    }

    .twofa-input {
        font-size: 16px;
        letter-spacing: 6px;
    }

        .twofa-input.code-input {
            font-size: 20px;
            letter-spacing: 8px;
        }
}

/* Success animation */
.twofa-success {
    animation: twofaSuccess 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes twofaSuccess {
    0% {
        transform: scale(1);
        background: linear-gradient(135deg, #41CAC2, #866efb);
    }

    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #4ade80, #22c55e);
    }

    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #4ade80, #22c55e);
    }
}