* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--auth-body-font);
    background: var(--auth-accent-light);
    color: var(--auth-primary);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}


/* ==========================================================
   PAGE
========================================================== */

.beauty-auth-page {
    min-height: 100vh;

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

    padding: 48px 24px;

    background:
        linear-gradient(
            135deg,
            var(--auth-light) 0%,
            var(--auth-accent-light) 100%
        );
}


.beauty-auth-layout {
    width: 100%;
    max-width: 480px;
}


/* ==========================================================
   CARD
========================================================== */

.beauty-auth-card {
    width: 100%;

    padding: 42px;

    background: var(--auth-light);

    border-radius: 18px;

    box-shadow:
        0 20px 60px
        rgba(23, 19, 19, 0.12);
}


/* ==========================================================
   BRAND
========================================================== */

.beauty-auth-brand {
    margin-bottom: 30px;

    text-align: center;

    font-family: var(--auth-display-font);
    font-size: 38px;
    font-style: italic;

    color: var(--auth-primary);
}


/* ==========================================================
   HEADING
========================================================== */

.beauty-auth-heading {
    margin-bottom: 30px;

    text-align: center;
}

.beauty-auth-heading h1 {
    margin: 0 0 8px;

    font-family: var(--auth-display-font);
    font-size: 30px;
    font-weight: 600;

    color: var(--auth-primary);
}

.beauty-auth-heading p {
    margin: 0;

    color: var(--auth-muted);

    font-size: 15px;
    line-height: 1.5;
}


/* ==========================================================
   FORM
========================================================== */

.beauty-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.beauty-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.beauty-auth-field label {
    font-size: 13px;
    font-weight: 600;

    color: var(--auth-primary);
}

.beauty-auth-field label span {
    color: var(--auth-accent);
}


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

.beauty-auth-input-wrap {
    position: relative;

    display: flex;
    align-items: center;
}

.beauty-auth-input-wrap > i {
    position: absolute;
    left: 16px;

    color: var(--auth-muted);

    pointer-events: none;
}

.beauty-auth-input-wrap input {
    width: 100%;
    height: 52px;

    padding:
        0
        48px
        0
        46px;

    border:
        1px solid
        rgba(101, 87, 90, 0.24);

    border-radius: 10px;

    background: var(--auth-light);

    color: var(--auth-primary);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.beauty-auth-input-wrap input:focus {
    border-color: var(--auth-accent);

    box-shadow:
        0 0 0 3px
        rgba(242, 24, 105, 0.08);
}

.beauty-auth-input-wrap input::placeholder {
    color:
        rgba(101, 87, 90, 0.68);
}


/* ==========================================================
   PASSWORD TOGGLE
========================================================== */

.beauty-password-toggle {
    position: absolute;
    right: 14px;

    border: 0;
    background: transparent;

    color: var(--auth-muted);

    cursor: pointer;

    padding: 8px;
}


/* ==========================================================
   TERMS
========================================================== */

.beauty-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 2px;

    color: var(--auth-muted);

    font-size: 13px;
    line-height: 1.5;
}

.beauty-auth-terms input {
    margin-top: 3px;
}

.beauty-auth-terms a {
    color: var(--auth-accent);

    text-decoration: underline;
}


/* ==========================================================
   LOGIN OPTIONS
========================================================== */

.beauty-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    font-size: 13px;
}


.beauty-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--auth-muted);
}


.beauty-auth-forgot {
    color: var(--auth-accent);

    text-decoration: underline;
}


/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.beauty-auth-submit {
    width: 100%;
    min-height: 52px;

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

    gap: 10px;

    margin-top: 4px;

    border: 0;
    border-radius: 10px;

    background: var(--auth-accent);
    color: var(--auth-light);

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.beauty-auth-submit:hover {
    opacity: 0.92;

    transform: translateY(-1px);
}


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

.beauty-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 14px;

    margin: 24px 0;
}

.beauty-auth-divider span {
    height: 1px;

    background:
        rgba(101, 87, 90, 0.22);
}

.beauty-auth-divider p {
    margin: 0;

    color: var(--auth-muted);

    font-size: 13px;
}


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

.beauty-google-button {
    min-height: 52px;

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

    gap: 12px;

    border:
        1px solid
        rgba(101, 87, 90, 0.25);

    border-radius: 10px;

    background: var(--auth-light);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.beauty-google-icon {
    font-size: 18px;
    font-weight: 800;

    color: var(--auth-accent);
}


/* ==========================================================
   FOOTER LINK
========================================================== */

.beauty-auth-footer {
    margin-top: 26px;

    text-align: center;

    color: var(--auth-muted);

    font-size: 13px;
}

.beauty-auth-footer a {
    margin-left: 4px;

    color: var(--auth-accent);

    text-decoration: underline;
}


/* ==========================================================
   LOGOUT PAGE
========================================================== */

.beauty-auth-logout-page {
    width: 100vw;
    min-height: 100vh;

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


.beauty-logout-overlay {
    position: fixed;
    inset: 0;

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

    padding: 24px;

    background:
        rgba(8, 8, 8, 0.72);
}


.beauty-logout-modal {
    width: 100%;
    max-width: 430px;

    padding: 42px;

    text-align: center;

    background: var(--auth-light);

    border-radius: 16px;

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.28);
}


.beauty-logout-icon {
    width: 72px;
    height: 72px;

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

    margin:
        0
        auto
        22px;

    border-radius: 50%;

    background: var(--auth-accent-light);
    color: var(--auth-accent);

    font-size: 28px;
}


.beauty-logout-modal h1 {
    margin: 0 0 10px;

    font-family: var(--auth-display-font);

    font-size: 30px;
}


.beauty-logout-modal p {
    max-width: 310px;

    margin:
        0
        auto
        30px;

    color: var(--auth-muted);

    font-size: 15px;
    line-height: 1.6;
}


.beauty-logout-actions {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.beauty-logout-confirm,
.beauty-logout-cancel {
    width: 100%;

    min-height: 50px;

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

    border-radius: 10px;

    text-decoration: none;

    font-weight: 700;
}


.beauty-logout-confirm {
    background: var(--auth-accent);
    color: var(--auth-light);
}


.beauty-logout-cancel {
    border:
        1px solid
        var(--auth-accent);

    color: var(--auth-accent);

    background: transparent;
}


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

@media (max-width: 640px) {

    .beauty-auth-page {
        padding: 24px 16px;
    }

    .beauty-auth-card {
        padding:
            34px
            22px;
    }

    .beauty-auth-brand {
        font-size: 32px;
    }

    .beauty-auth-heading h1 {
        font-size: 26px;
    }

    .beauty-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .beauty-logout-modal {
        padding:
            36px
            24px;
    }

}