/* =========================================
   AUTH PAGE
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f5f6f8;
    color: #15171a;
}


/* =========================================
   AUTH PAGE
========================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0, 0, 0, 0.045),
            transparent 45%
        ),
        #f5f6f8;
}


/* =========================================
   AUTH CARD
========================================= */

.auth-card {
    width: 100%;
    max-width: 420px;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e4e6e9;
    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.03);

    animation: authAppear 0.35s ease-out;
}

@keyframes authAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   LOGO
========================================= */

.auth-logo {
    display: inline-block;

    margin-bottom: 30px;

    color: #111315;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;

    transition: opacity 0.2s ease;
}

.auth-logo:hover {
    opacity: 0.65;
}


/* =========================================
   HEADING
========================================= */

.auth-heading {
    margin-bottom: 27px;
}

.auth-heading h1 {
    margin-bottom: 8px;

    color: #111315;

    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.auth-heading p {
    color: #777b81;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   FORM
========================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.auth-form.hidden {
    display: none;
}


/* =========================================
   LABELS
========================================= */

.auth-form label {
    margin-top: 7px;

    color: #363a3f;

    font-size: 13px;
    font-weight: 650;
}

.auth-form label:first-child {
    margin-top: 0;
}


/* =========================================
   INPUTS
========================================= */

.auth-form input {
    width: 100%;
    height: 46px;

    padding: 0 14px;

    border: 1px solid #dfe2e6;
    border-radius: 10px;

    outline: none;

    background: #fafbfc;

    color: #17191c;

    font-size: 14px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.auth-form input::placeholder {
    color: #a0a4a9;
}

.auth-form input:hover {
    border-color: #cfd3d7;
}

.auth-form input:focus {
    background: #ffffff;
    border-color: #17191c;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.07);
}


/* =========================================
   SUBMIT
========================================= */

.auth-submit {
    width: 100%;
    height: 46px;

    margin-top: 13px;

    border: none;
    border-radius: 10px;

    background: #17191c;
    color: #ffffff;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-submit:hover {
    background: #292c30;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.12);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================
   MESSAGE
========================================= */

.auth-message {
    min-height: 20px;

    margin-top: 7px;

    color: #777b81;

    font-size: 13px;
    line-height: 1.4;
}

.auth-message.error {
    color: #c73737;
}

.auth-message.success {
    color: #27804c;
}


/* =========================================
   LOGIN / REGISTER SWITCH
========================================= */

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid #eceef0;

    color: #777b81;

    font-size: 13px;
}

.auth-switch button {
    padding: 0;

    border: none;

    background: transparent;
    color: #17191c;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition: opacity 0.18s ease;
}

.auth-switch button:hover {
    opacity: 0.55;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 15px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

}