* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    overflow: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: white;

    background: #080b20;
}

.background {
    position: fixed;
    inset: -20%;

    z-index: -3;

    background:
        radial-gradient(
            circle at 20% 30%,
            #ff4ecd,
            transparent 35%
        ),

        radial-gradient(
            circle at 80% 20%,
            #5865ff,
            transparent 35%
        ),

        radial-gradient(
            circle at 70% 80%,
            #00d4ff,
            transparent 35%
        ),

        radial-gradient(
            circle at 20% 80%,
            #7b2cff,
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #080b20,
            #181044,
            #090d2b
        );

    filter: blur(60px);

    animation:
        backgroundMove 15s
        ease-in-out
        infinite
        alternate;
}


@keyframes backgroundMove {

    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(3deg);
    }

    100% {
        transform: scale(1.05) rotate(-3deg);
    }
}


.overlay {
    position: fixed;
    inset: 0;

    z-index: -2;

    background:
        rgba(0, 0, 0, 0.25);
}

.welcome-screen {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    pointer-events: auto;
    cursor: pointer;
    background: rgba(3,8,24,.08);
    transition: opacity .45s ease, visibility .45s ease;
}

.welcome-screen.skip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-skip-hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.42);
    font-size: 12px;
    letter-spacing: .04em;
}

.welcome-text {
    position: absolute;

    text-align: center;

    font-size:
        clamp(45px, 8vw, 110px);

    font-weight: 700;

    opacity: 0;

    letter-spacing: 2px;

    text-shadow:
        0 0 20px rgba(255,255,255,.5),
        0 0 50px rgba(120,150,255,.5);

    animation-duration: 4s;

    animation-fill-mode: forwards;
}


.kazakh {
    animation-name: welcomeKazakh;
    animation-delay: 0s;
}

.russian {
    animation-name: welcomeRussian;
    animation-delay: 4s;
}

.english {
    animation-name: welcomeEnglish;
    animation-delay: 8s;
}


@keyframes welcomeEnglish {

    0% {
        opacity: 0;
        transform: scale(.85);
        filter: blur(15px);
    }

    25% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }
}


@keyframes welcomeRussian {

    0% {
        opacity: 0;
        transform: scale(.85);
        filter: blur(15px);
    }

    25% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }
}


@keyframes welcomeKazakh {

    0% {
        opacity: 0;
        transform: scale(.85);
        filter: blur(15px);
    }

    25% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }
}

.login-container {

    position: fixed;

    top: 50%;
    left: 50%;

    width: min(450px, calc(100% - 30px));

    padding: 40px;

    transform:
        translate(-50%, -50%)
        scale(.8);

    opacity: 0;

    text-align: center;

    border:
        1px solid rgba(255,255,255,.18);

    border-radius: 30px;

    background:
        rgba(15,18,40,.65);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.4);

    animation:
        showPanel 1.5s
        ease forwards;

    animation-delay: 12s;

    z-index: 5;
}


@keyframes showPanel {

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}

.logo {

    width: 70px;
    height: 70px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    font-size: 20px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #6c5ce7,
            #00d4ff
        );

    box-shadow:
        0 10px 30px
        rgba(90,100,255,.4);
}


h1 {
    font-size: 30px;
    margin-bottom: 8px;
}


.subtitle {
    color:
        rgba(255,255,255,.65);

    margin-bottom: 30px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


button {
    font-family: inherit;
    cursor: pointer;
    border: none;

    transition:
        .25s ease;
}


button:hover {
    transform: translateY(-2px);
}


.main-button {

    width: 100%;

    padding: 16px;

    color: white;

    border-radius: 14px;

    font-size: 16px;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #6c5ce7,
            #4776ff
        );

    box-shadow:
        0 10px 25px
        rgba(76,91,255,.3);
}


.main-button:hover {

    box-shadow:
        0 15px 35px
        rgba(76,91,255,.5);
}


.secondary-button {

    width: 100%;

    padding: 15px;

    color: white;

    border-radius: 14px;

    font-size: 15px;

    font-weight: 600;

    background:
        rgba(255,255,255,.09);

    border:
        1px solid rgba(255,255,255,.12);
}


.secondary-button:hover {

    background:
        rgba(255,255,255,.15);
}


.forgot-button {

    padding: 8px;

    color: #b8b9ff;

    background: transparent;
}


.forgot-button:hover {
    color: white;
}

.modal {

    position: fixed;

    inset: 0;

    z-index: 20;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 15px;

    background:
        rgba(0,0,0,.55);

    backdrop-filter:
        blur(10px);
}


.modal.active {
    display: flex;

    animation:
        modalAppear .3s ease;
}


@keyframes modalAppear {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {

    position: relative;

    width: min(430px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    text-align: center;

    border-radius: 28px;

    border:
        1px solid rgba(255,255,255,.18);

    background:
        rgba(15,18,40,.9);

    backdrop-filter:
        blur(30px);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.5);

    animation:
        contentAppear .35s ease;
}


@keyframes contentAppear {

    from {
        transform: scale(.85) translateY(20px);
        opacity: 0;
    }

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

.close {

    position: absolute;

    top: 15px;
    right: 18px;

    width: 35px;
    height: 35px;

    color:
        rgba(255,255,255,.6);

    font-size: 28px;

    background: transparent;
}


.close:hover {
    color: white;
}

.modal-icon {

    width: 60px;
    height: 60px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    font-size: 27px;

    background:
        linear-gradient(
            135deg,
            #6c5ce7,
            #00d4ff
        );
}


.modal-content h2 {
    font-size: 27px;
    margin-bottom: 8px;
}


.modal-content > p {
    color:
        rgba(255,255,255,.55);

    margin-bottom: 25px;
}

.choice-buttons {

    display: flex;
    flex-direction: column;

    gap: 12px;
}


.choice-buttons button {

    display: flex;

    align-items: center;

    gap: 15px;

    width: 100%;

    padding: 18px;

    color: white;

    text-align: left;

    border-radius: 17px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.1);
}


.choice-buttons button:hover {

    background:
        rgba(255,255,255,.13);

    border-color:
        rgba(120,150,255,.5);
}


.choice-buttons span {
    font-size: 30px;
}


.choice-buttons strong {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;
}


.choice-buttons small {

    color:
        rgba(255,255,255,.5);

    font-size: 12px;
}

.form-content {
    text-align: left;
}


.form-content .modal-icon,
.form-content h2,
.form-content > p {
    text-align: center;
}


.form-content form {

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-content label {

    margin-top: 8px;

    font-size: 13px;

    font-weight: 600;

    color:
        rgba(255,255,255,.8);
}


.form-content input {

    width: 100%;

    padding: 14px 15px;

    color: white;

    outline: none;

    border-radius: 12px;

    border:
        1px solid rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.07);

    font-size: 14px;
}


.form-content input::placeholder {

    color:
        rgba(255,255,255,.35);
}


.form-content input:focus {

    border-color:
        #6875ff;

    background:
        rgba(255,255,255,.1);

    box-shadow:
        0 0 0 3px
        rgba(104,117,255,.12);
}


.hint {

    margin-top: -2px;

    color:
        rgba(255,255,255,.4);

    font-size: 10px;

    line-height: 1.3;
}


.form-content .main-button {

    margin-top: 15px;
}

.back-button {

    width: 100%;

    margin-top: 15px;

    padding: 12px;

    color:
        rgba(255,255,255,.6);

    border-radius: 12px;

    background:
        rgba(255,255,255,.05);
}


.back-button:hover {

    color: white;

    background:
        rgba(255,255,255,.1);
}

.footer {

    margin-top: 25px;

    color:
        rgba(255,255,255,.3);

    font-size: 11px;
}

@media (max-width: 500px) {

    .login-container {
        padding: 30px 22px;
    }

    .modal-content {
        padding: 30px 22px;
    }

    h1 {
        font-size: 25px;
    }

    .welcome-text {
        font-size: 42px;
    }
}


.remember-device{display:flex;align-items:center;justify-content:flex-start!important;width:100%;margin:14px 0 18px!important;text-align:left!important;gap:9px!important;}
.remember-device input{margin:0!important;flex:0 0 auto;}
.remember-device span{display:block;text-align:left;}
.remember-device{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;text-align:left!important;margin:12px 0!important;gap:9px!important}
.remember-device input{margin:0!important;flex:0 0 auto!important}


.remember-device{
    position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:10px!important;width:100%!important;margin:15px 0 20px!important;padding:10px 12px!important;
    border:1px solid rgba(255,255,255,.10)!important;border-radius:14px!important;
    background:rgba(255,255,255,.045)!important;cursor:pointer!important;box-sizing:border-box!important;
    transition:.2s ease!important;
}
.remember-device:hover{background:rgba(255,255,255,.075)!important;border-color:rgba(120,160,255,.35)!important}
.remember-device input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;margin:0!important}
.remember-box{width:20px;height:20px;flex:0 0 20px;border-radius:6px;border:1.5px solid rgba(255,255,255,.35);background:rgba(255,255,255,.03);position:relative;transition:.2s ease;box-sizing:border-box}
.remember-device input:checked + .remember-box{background:linear-gradient(135deg,#4f8cff,#6a6fff);border-color:transparent;box-shadow:0 5px 16px rgba(74,122,255,.28)}
.remember-device input:checked + .remember-box::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900}
.remember-label{font-size:13px!important;font-weight:600!important;color:rgba(255,255,255,.78)!important;line-height:1.25}
.remember-device:focus-within{outline:2px solid rgba(95,145,255,.38);outline-offset:2px}



.welcome-text{animation-duration:4s;}
.kazakh{animation-delay:0s;}
.russian{animation-delay:4s;}
.english{animation-delay:8s;}
.login-container{animation-duration:3s;animation-delay:12s;}
.welcome-screen.fast-forward{opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
.login-container.fast-forward{animation-delay:0s!important;animation-duration:3s!important;}

