/* =========================================
   GLOBAL RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    margin: 0;
    padding: 16px 12px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: Arial, sans-serif;

    background: #0a0f0d;
    color: #ffffff;

    overflow-x: hidden;
}


/* =========================================
   AUTH CONTAINER
========================================= */

.auth-container {
    width: 100%;
    max-width: 430px;

    margin: 0 auto;

    flex: 0 0 auto;
}


/* =========================================
   AUTH BOX
========================================= */

.auth-box {
    width: 100%;
    max-width: 430px;

    margin: 14px auto 0;

    padding: 24px 22px 22px;

    background:
        linear-gradient(
            145deg,
            #101a16,
            #0d1512
        );

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

    border-radius: 25px;

    box-shadow:
        0 0 30px
        rgba(16,185,129,.20),
        0 20px 60px
        rgba(0,0,0,.35);

    text-align: center;

    color: #ffffff;

    animation:
        showCard .7s ease;
}


/* =========================================
   HEADINGS
========================================= */

.auth-box h1 {
    margin: 4px 0;

    text-align: center;

    color: #10b981;

    font-size: 24px;

    line-height: 1.25;

    letter-spacing: .2px;
}

.auth-box h2 {
    margin: 12px 0 18px;

    font-size: 20px;

    line-height: 1.3;
}


/* =========================================
   LOGO
========================================= */

.logo {
    width: 76px;
    height: 76px;

    margin: 0 auto 6px;

    animation:
        leafFloat 3s
        ease-in-out
        infinite;
}

.logo svg {
    width: 100%;
    height: 100%;

    filter:
        drop-shadow(
            0 0 15px #10b981
        );
}

@keyframes leafFloat {

    0% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-8px)
            rotate(5deg);
    }

    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }
}


/* =========================================
   INPUT
========================================= */

input {
    width: 100%;

    padding: 13px;

    margin: 8px 0;

    border: none;
    outline: none;

    border-radius: 12px;

    background: #1f2937;

    color: #ffffff;

    font-size: 15px;
}

.auth-box input {
    width: 100%;

    padding: 13px 14px;

    margin: 8px 0;

    border-radius: 13px;

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

    outline: none;

    background: #18231f;

    color: #ffffff;

    font-size: 15px;

    transition:
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
}

input::placeholder {
    color:
        rgba(255,255,255,.45);
}

.auth-box input:focus {
    background: #1a2823;

    border-color:
        rgba(16,185,129,.55);

    box-shadow:
        0 0 0 2px
        rgba(16,185,129,.18);
}


/* =========================================
   MAIN BUTTON
========================================= */

button {
    width: 100%;

    padding: 13px;

    margin-top: 12px;

    border: none;

    border-radius: 12px;

    background: #10b981;

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    transition: .3s;
}

.auth-box button {
    width: 100%;

    padding: 13px;

    margin-top: 10px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #10b981,
            #059669
        );

    color: #06100c;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}

.auth-box button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 25px
        rgba(16,185,129,.28);
}

.auth-box button:active {
    transform:
        scale(.98);
}


/* =========================================
   LINKS
========================================= */

a {
    color: #10b981;

    text-decoration: none;
}


/* =========================================
   GENERAL P
========================================= */

p {
    text-align: center;
}


/* =========================================
   LOGIN BOX
========================================= */

#loginBox {
    position: relative;

    width: 100%;
}


/* =========================================
   FORGOT PASSWORD
========================================= */

#loginBox > p {
    position: static !important;

    display: block;

    width: 100%;

    margin: 11px 0 0;

    padding: 4px 0;

    text-align: center;

    color: #10b981;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.5;

    cursor: pointer;

    transition:
        color .2s ease;
}

#loginBox > p:hover {
    color: #34d399;

    text-decoration: underline;
}


/* =========================================
   SOCIAL LOGIN
========================================= */

.social-login {
    width: 100%;

    margin:
        18px auto 0;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 30px;
}


/* =========================================
   SOCIAL ITEM
========================================= */

.social-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-width: 62px;
}


/* =========================================
   SOCIAL ICON BUTTON
========================================= */

.social-icon {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px;
    min-height: 48px;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;

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

    border: none !important;

    border-radius: 50% !important;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}


/* =========================================
   ICON SHINE EFFECT
========================================= */

.social-icon::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.20),
            transparent 45%
        );

    opacity: .7;

    pointer-events: none;
}


/* =========================================
   TELEGRAM
========================================= */

.social-icon.telegram {
    background:
        linear-gradient(
            145deg,
            #2AABEE,
            #168ACB
        );

    color: #ffffff;

    box-shadow:
        0 7px 20px
        rgba(42,171,238,.25);
}

.social-icon.telegram svg {
    position: relative;

    z-index: 1;

    width: 24px;
    height: 24px;
}


/* =========================================
   FACEBOOK
========================================= */

.social-icon.facebook {
    background:
        linear-gradient(
            145deg,
            #1877F2,
            #0D5FD1
        );

    color: #ffffff;

    box-shadow:
        0 7px 20px
        rgba(24,119,242,.25);
}

.social-icon.facebook span {
    position: relative;

    z-index: 1;

    display: flex;

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

    width: 100%;
    height: 100%;

    font-family:
        Arial,
        sans-serif;

    font-size: 28px;

    font-weight: 700;

    line-height: 1;

    transform:
        translateY(2px);
}


/* =========================================
   GOOGLE LOGIN
========================================= */

.social-icon.google {
    background: #ffffff;

    color: #4285f4;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, .25);

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


/* GOOGLE SVG */

.social-icon.google svg {
    width: 24px;
    height: 24px;

    display: block;
}


/* GOOGLE HOVER */

.social-icon.google:hover {
    background: #ffffff;

    transform:
        translateY(-3px)
        scale(1.06);

    box-shadow:
        0 0 22px
        rgba(255,255,255,.28);
}


/* GOOGLE ACTIVE */

.social-icon.google:active {
    transform:
        scale(.94);
}


/* =========================================
   SOCIAL TEXT
========================================= */

.social-item > span {
    color:
        rgba(255,255,255,.60);

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    transition:
        color .2s ease;
}


/* =========================================
   SOCIAL HOVER
========================================= */

.social-icon:hover {
    transform:
        translateY(-4px)
        scale(1.05);

    filter:
        brightness(1.08);
}

.social-icon.telegram:hover {
    box-shadow:
        0 10px 28px
        rgba(42,171,238,.42);
}

.social-icon.facebook:hover {
    box-shadow:
        0 10px 28px
        rgba(24,119,242,.42);
}

.social-icon.google:hover {
    box-shadow:
        0 10px 28px
        rgba(255,255,255,.25);
}

.social-item:hover > span {
    color:
        rgba(255,255,255,.88);
}


/* =========================================
   SOCIAL ACTIVE
========================================= */

.social-icon:active {
    transform:
        scale(.92);
}


/* =========================================
   SOCIAL DIVIDER
========================================= */

.social-divider {
    width: 100%;

    height: 1px;

    margin:
        20px auto 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.16),
            transparent
        );
}


/* =========================================
   SIGNUP
========================================= */

#signupBox {
    display: none;
}


/* =========================================
   FORGOT / RESET / SIGNUP
========================================= */

#forgotBox,
#resetBox,
#signupBox {
    animation:
        slide .3s ease;
}

@keyframes slide {

    from {
        opacity: 0;

        transform:
            translateX(30px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* =========================================
   AUTH BOX ANIMATION
========================================= */

@keyframes showCard {

    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   CLOUDFLARE TURNSTILE
========================================= */

#loginTurnstile,
#signupTurnstile,
#forgotTurnstile {
    width: 100%;

    max-width: 100%;

    margin:
        8px auto;

    display: flex;

    justify-content: center;

    overflow: hidden;
}


/* =========================================
   AUTH MESSAGE
========================================= */

.auth-message {
    display: none;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    padding: 10px 12px;

    border-radius: 12px;

    font-size: 13px;
}

.auth-message.error {
    display: flex;

    color: #ff6b6b;

    background:
        rgba(239,68,68,.10);

    border:
        1px solid
        rgba(239,68,68,.20);
}

.auth-message.success {
    display: flex;

    color: #10b981;

    background:
        rgba(16,185,129,.10);

    border:
        1px solid
        rgba(16,185,129,.20);
}


/* =========================================
   AUTH LOADING
========================================= */

.auth-loading {
    display: none;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 12px;

    color: #10b981;

    font-size: 14px;

    font-weight: 600;
}

.auth-loading.show {
    display: flex;

    animation:
        authMessageIn .25s ease;
}


/* =========================================
   SPINNER
========================================= */

.auth-spinner {
    width: 20px;
    height: 20px;

    border-radius: 50%;

    border:
        2px solid
        rgba(16,185,129,.18);

    border-top-color:
        #10b981;

    animation:
        authSpin .75s linear infinite;
}

.auth-login-loading {
    opacity: .75;

    pointer-events: none;
}


/* =========================================
   AUTH ANIMATIONS
========================================= */

@keyframes authSpin {

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes authMessageIn {

    from {
        opacity: 0;

        transform:
            translateY(-5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================
   APP LOADING SCREEN
========================================= */

.app-loading {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(5,12,9,.92);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}

.app-loading.show {
    display: flex;
}


/* =========================================
   LOADING BOX
========================================= */

.loading-box {
    width:
        min(360px,100%);

    padding:
        32px 25px;

    text-align: center;

    border-radius: 24px;

    background:
        rgba(16,185,129,.07);

    border:
        1px solid
        rgba(16,185,129,.16);

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.45);

    animation:
        loadingBoxIn .35s ease;
}

@keyframes loadingBoxIn {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   LOADING ICON
========================================= */

.loading-icon {
    width: 64px;
    height: 64px;

    margin:
        0 auto 18px;

    display: flex;

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

    border-radius: 18px;

    color: #10b981;

    background:
        rgba(16,185,129,.12);

    animation:
        loadingPulse 1.5s
        ease-in-out infinite;
}

.loading-icon svg {
    width: 34px;
    height: 34px;

    animation:
        loadingRotate 1.5s
        linear infinite;
}

@keyframes loadingRotate {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes loadingPulse {

    0%,
    100% {
        transform:
            scale(1);

        box-shadow:
            0 0 0
            rgba(16,185,129,0);
    }

    50% {
        transform:
            scale(1.05);

        box-shadow:
            0 0 30px
            rgba(16,185,129,.15);
    }
}


/* =========================================
   LOADING TITLE
========================================= */

.loading-box h3 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;

    font-weight: 700;
}


/* =========================================
   LOADING MESSAGE
========================================= */

.loading-box p {
    margin:
        8px 0 20px;

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

    font-size: 13px;
}


/* =========================================
   LOADING BAR
========================================= */

.loading-line {
    width: 100%;

    height: 4px;

    overflow: hidden;

    border-radius: 20px;

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

.loading-line span {
    display: block;

    width: 35%;

    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #059669,
            #10b981,
            #34d399
        );

    animation:
        loadingBar 1.2s
        ease-in-out infinite;
}

@keyframes loadingBar {

    0% {
        transform:
            translateX(-120%);
    }

    50% {
        transform:
            translateX(180%);
    }

    100% {
        transform:
            translateX(300%);
    }
}


/* =========================================
   COPYRIGHT FOOTER
========================================= */

.developer-footer {
    width: 100%;
    max-width: 430px;

    display: flex;

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

    text-align: center;

    margin-top: auto;

    margin-left: auto;
    margin-right: auto;

    padding:
        18px 0 4px;

    flex: 0 0 auto;
}

.copyright {
    margin: 0;

    font-size: 15px;

    line-height: 1.4;

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

    font-weight: 600;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    body {
        padding:
            10px;
    }

    .auth-box {
        width: 100%;

        max-width: none;

        margin:
            10px auto 0;

        padding:
            22px 18px 20px;

        border-radius: 22px;
    }

    .logo {
        width: 70px;
        height: 70px;

        margin-bottom: 5px;
    }

    .auth-box h1 {
        font-size: 23px;

        margin:
            3px 0;
    }

    .auth-box h2 {
        font-size: 20px;

        margin:
            10px 0 16px;
    }

    .auth-box input {
        padding:
            13px;

        margin:
            7px 0;

        font-size:
            15px;
    }

    .auth-box button {
        padding:
            13px;

        margin-top:
            9px;

        font-size:
            15px;
    }

    #loginTurnstile,
    #signupTurnstile,
    #forgotTurnstile {
        margin:
            7px auto;
    }

    #loginBox > p {
        margin:
            9px 0 0;
    }

    /* SOCIAL */

    .social-login {
        margin-top:
            17px;

        gap:
            25px;
    }

    .social-icon {
        width:
            46px !important;

        height:
            46px !important;

        min-width:
            46px;

        min-height:
            46px;
    }

    .social-icon.telegram svg {
        width: 23px;
        height: 23px;
    }

    .social-icon.facebook span {
        font-size: 27px;
    }

    .social-icon.google span {
        font-size: 22px;
    }

    .social-item > span {
        font-size:
            10px;
    }

    .social-divider {
        margin-top:
            18px;
    }

    .developer-footer {
        width: 100%;

        padding:
            18px 0 2px;
    }

    .copyright {
        font-size:
            15px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 360px) {

    body {
        padding:
            8px 7px;
    }

    .auth-box {
        margin-top:
            8px;

        padding:
            18px 14px 17px;

        border-radius:
            20px;
    }

    .logo {
        width: 62px;
        height: 62px;
    }

    .auth-box h1 {
        font-size:
            21px;
    }

    .auth-box h2 {
        font-size:
            18px;

        margin:
            8px 0 13px;
    }

    .auth-box input {
        padding:
            12px;

        margin:
            6px 0;

        font-size:
            14px;
    }

    .auth-box button {
        padding:
            12px;

        font-size:
            14px;
    }

    .social-login {
        gap:
            20px;
    }

    .social-icon {
        width:
            43px !important;

        height:
            43px !important;

        min-width:
            43px;

        min-height:
            43px;
    }

    .social-icon.telegram svg {
        width:
            21px;

        height:
            21px;
    }

    .social-icon.facebook span {
        font-size:
            25px;
    }

    .social-icon.google span {
        font-size:
            20px;
    }

    .social-item > span {
        font-size:
            9px;
    }

    .social-divider {
        margin-top:
            17px;
    }

    .developer-footer {
        padding:
            15px 0 1px;
    }

    .copyright {
        font-size:
            14px;
    }
}


/* =========================================
   SHORT PHONES
========================================= */

@media (max-width: 480px)
and (max-height: 700px) {

    body {
        padding-top:
            6px;

        padding-bottom:
            6px;
    }

    .auth-box {
        margin-top:
            5px;

        padding:
            16px 15px 17px;
    }

    .logo {
        width:
            58px;

        height:
            58px;
    }

    .auth-box h1 {
        font-size:
            20px;
    }

    .auth-box h2 {
        font-size:
            17px;

        margin:
            6px 0 10px;
    }

    .auth-box input {
        padding:
            10px 11px;

        margin:
            5px 0;
    }

    .auth-box button {
        padding:
            10px;

        margin-top:
            6px;
    }

    #loginTurnstile,
    #signupTurnstile,
    #forgotTurnstile {
        margin:
            4px auto;
    }

    #loginBox > p {
        margin-top:
            6px;
    }

    .social-login {
        margin-top:
            12px;

        gap:
            19px;
    }

    .social-icon {
        width:
            42px !important;

        height:
            42px !important;

        min-width:
            42px;

        min-height:
            42px;
    }

    .social-icon.telegram svg {
        width:
            20px;

        height:
            20px;
    }

    .social-item > span {
        font-size:
            8px;
    }

    .social-divider {
        margin-top:
            14px;
    }

    .developer-footer {
        padding:
            12px 0 1px;
    }

    .copyright {
        font-size:
            13px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 481px)
and (max-width: 768px) {

    body {
        padding:
            20px;
    }

    .auth-box {
        max-width:
            430px;

        margin-top:
            20px;

        padding:
            26px 24px;
    }

    .social-login {
        gap:
            30px;
    }

    .developer-footer {
        padding:
            20px 0 3px;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 769px) {

    body {
        padding:
            30px 20px 15px;
    }

    .auth-box {
        max-width:
            430px;

        margin:
            25px auto 0;

        padding:
            28px 25px 24px;
    }

    .developer-footer {
        width:
            430px;

        padding:
            22px 0 3px;
    }
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1200px) {

    .auth-box {
        margin-top:
            35px;
    }

    .developer-footer {
        padding:
            25px 0 4px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

    .social-icon {
        transition:
            none;
    }
}