
/* =========================================================
   ETHERION HOME AUTH V31
   ========================================================= */

.home-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(121, 78, 30, .16),
            transparent 34rem
        ),
        rgba(4, 3, 2, .86);

    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.home-auth-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-auth-dialog {
    position: relative;

    width: min(430px, 100%);

    padding: 28px;

    border:
        1px solid
        rgba(214, 173, 99, .28);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 18, 11, .98),
            rgba(10, 8, 5, .99)
        );

    box-shadow:
        0 32px 90px
        rgba(0, 0, 0, .58);
}

.home-auth-dialog::before {
    content: "";

    position: absolute;
    inset: 7px;

    border:
        1px solid
        rgba(214, 173, 99, .08);

    border-radius: 12px;

    pointer-events: none;
}

.home-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 173, 99, .16);

    border-radius: 50%;

    color:
        rgba(242, 231, 208, .7);

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

    cursor: pointer;
}

.home-auth-heading {
    position: relative;

    margin-bottom: 22px;

    text-align: center;
}

.home-auth-heading img {
    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    object-fit: contain;
}

.home-auth-heading small {
    display: block;

    margin-bottom: 6px;

    color: #d6ad63;

    font-size: .67rem;
    font-weight: 800;

    letter-spacing: .22em;

    text-transform: uppercase;
}

.home-auth-heading h2 {
    margin: 0;

    color: #f2e7d0;

    font:
        700
        1.75rem/1.1
        Georgia,
        "Times New Roman",
        serif;
}

.home-auth-heading p {
    margin:
        10px
        auto
        0;

    max-width: 320px;

    color:
        rgba(242, 231, 208, .55);

    font-size: .82rem;
}

.home-auth-form {
    position: relative;

    display: grid;
    gap: 14px;
}

.home-auth-field {
    display: grid;
    gap: 7px;
}

.home-auth-field label {
    color:
        rgba(242, 231, 208, .66);

    font-size: .68rem;
    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.home-auth-field input {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid
        rgba(214, 173, 99, .18);

    border-radius: 10px;

    outline: none;

    color: #f5ead4;

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

    font: inherit;

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

.home-auth-field input:focus {
    border-color:
        rgba(214, 173, 99, .58);

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

    box-shadow:
        0 0 0 3px
        rgba(214, 173, 99, .07);
}

.home-auth-submit {
    min-height: 48px;

    margin-top: 3px;

    border:
        1px solid
        rgba(240, 201, 121, .46);

    border-radius: 10px;

    color: #171008;

    background:
        linear-gradient(
            180deg,
            #e5bf73,
            #b98842
        );

    font-size: .76rem;
    font-weight: 900;

    letter-spacing: .12em;

    text-transform: uppercase;

    cursor: pointer;
}

.home-auth-submit:disabled {
    opacity: .58;
    cursor: wait;
}

.home-auth-message {
    min-height: 20px;

    margin: 0;

    color:
        #d99a83;

    text-align: center;

    font-size: .78rem;
}

.home-auth-message.is-success {
    color: #9bcf95;
}

.home-auth-switch {
    margin:
        2px
        0
        0;

    color:
        rgba(242, 231, 208, .5);

    text-align: center;

    font-size: .78rem;
}

.home-auth-switch button {
    padding: 0;

    border: 0;

    color: #d6ad63;

    background: none;

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.home-account__user {
    min-width: 0;

    padding:
        8px
        12px;

    color:
        rgba(242, 231, 208, .72);

    font-size: .78rem;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-account__logout {
    cursor: pointer;
}

body.home-auth-locked {
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .home-auth-overlay {
        padding: 14px;
    }

    .home-auth-dialog {
        padding:
            26px
            18px
            20px;
    }

    .home-account__user {
        max-width: 120px;
    }
}
