/* =========================================================
   SPIN BOTTLE — LOGIN / REGISTER
   assets/auth.css
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.auth {
    min-height: 100vh;
    min-height: 100dvh;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(173, 115, 57, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(37, 105, 77, 0.16),
            transparent 38%
        ),
        linear-gradient(
            160deg,
            #1b1c20 0%,
            #0d0e11 50%,
            #060709 100%
        );
}


/* Arxa fon işığı */

body.auth::before {
    content: "";

    position: fixed;

    width: 330px;
    height: 330px;

    left: 50%;
    top: 12%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(224, 179, 94, .10),
            transparent 68%
        );

    pointer-events: none;
}


/* =========================================================
   FORM BOX
========================================================= */

.authbox {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 390px;

    padding: 32px 26px 27px;

    display: flex;
    flex-direction: column;

    border-radius: 27px;

    background:
        linear-gradient(
            160deg,
            rgba(36, 37, 42, .96),
            rgba(17, 18, 22, .98)
        );

    border:
        1px solid rgba(255, 255, 255, .09);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .05);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {
    width: 82px;
    height: 82px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 25%,
            #416f5b,
            #173e2f 65%,
            #0b271d
        );

    border:
        2px solid rgba(230, 194, 119, .65);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .4),
        0 0 25px rgba(212, 167, 83, .13);

    font-size: 42px;

    transform: rotate(12deg);
}


/* =========================================================
   TITLE
========================================================= */

.authbox h1 {
    margin: 0;

    color: #ffffff;

    font-size: 27px;
    line-height: 1.15;

    font-weight: 900;
    text-align: center;

    letter-spacing: -.5px;
}

.authbox > p {
    margin: 8px 0 25px;

    color: rgba(255, 255, 255, .50);

    font-size: 13px;
    text-align: center;
}


/* =========================================================
   INPUTS
========================================================= */

.authbox input {
    width: 100%;
    height: 52px;

    margin-bottom: 12px;

    padding: 0 16px;

    border:
        1px solid rgba(255, 255, 255, .09);

    border-radius: 15px;

    outline: none;

    background:
        rgba(255, 255, 255, .055);

    color: #ffffff;

    font-size: 14px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.authbox input::placeholder {
    color:
        rgba(255, 255, 255, .34);
}

.authbox input:focus {
    background:
        rgba(255, 255, 255, .075);

    border-color:
        rgba(224, 183, 100, .60);

    box-shadow:
        0 0 0 3px
        rgba(224, 183, 100, .08);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.authbox .primary {
    width: 100%;
    height: 52px;

    margin-top: 5px;

    border: 0;
    border-radius: 15px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #e7c477,
            #b67a30
        );

    color: #19130b;

    font-size: 14px;
    font-weight: 900;

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, .30);

    transition:
        transform .15s ease,
        filter .15s ease;
}

.authbox .primary:hover {
    filter: brightness(1.05);
}

.authbox .primary:active {
    transform: scale(.98);
}


/* =========================================================
   LINK
========================================================= */

.authbox > a {
    display: block;

    margin-top: 20px;

    color: #e4c175;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;
}

.authbox > a:hover {
    text-decoration: underline;
}


/* =========================================================
   ERROR
========================================================= */

.authbox .error {
    margin: -7px 0 15px;

    padding: 11px 13px;

    border-radius: 12px;

    background:
        rgba(220, 62, 62, .12);

    border:
        1px solid rgba(255, 92, 92, .25);

    color: #ff9d9d;

    font-size: 12px;
    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   OPTIONAL SUCCESS
========================================================= */

.authbox .success {
    margin: -7px 0 15px;

    padding: 11px 13px;

    border-radius: 12px;

    background:
        rgba(52, 200, 105, .11);

    border:
        1px solid rgba(76, 226, 128, .24);

    color: #92ecb1;

    font-size: 12px;
    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    body.auth {
        padding: 17px;
    }

    .authbox {
        padding:
            27px
            20px
            24px;

        border-radius: 23px;
    }

    .auth-logo {
        width: 72px;
        height: 72px;

        font-size: 37px;
    }

    .authbox h1 {
        font-size: 24px;
    }

}


/* =========================================================
   SHORT SCREEN
========================================================= */

@media (max-height: 650px) {

    body.auth {
        align-items: flex-start;

        padding-top: 20px;
        padding-bottom: 20px;
    }

    .authbox {
        padding-top: 23px;
    }

    .auth-logo {
        width: 61px;
        height: 61px;

        margin-bottom: 12px;

        font-size: 31px;
    }

    .authbox > p {
        margin-bottom: 17px;
    }

}