/* =========================================================
   NEMI PRIVATE ACCESS
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 35%,
            #faf9f5 0%,
            #f5f3ee 55%,
            #f1eee7 100%
        );

    color: #161616;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


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

.private-entry {
    width: min(92%, 540px);
    min-height: 100vh;

    margin: 0 auto;

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

    padding: 38px 0;
}


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

.entry-heading {
    width: 100%;

    margin-bottom: 28px;

    text-align: center;
}

.nemi-wordmark {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.28em;

    color: #111111;

    padding-left: 0.28em;
}

.gold-line {
    width: 48px;
    height: 1px;

    margin: 22px auto 22px;

    background: #b89452;
}

.private-label {
    margin: 0 0 14px;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.24em;

    color: #858077;
}

.entry-heading h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.15;
    font-weight: 450;
    letter-spacing: -0.035em;

    color: #111111;
}

.ready-message {
    margin: 9px 0 0;

    font-size: 16px;
    line-height: 1.4;

    color: #77736b;
}


/* =========================================================
   SIGN-IN CARD
========================================================= */

.signin-card {
    width: 100%;

    padding: 34px 38px 30px;

    border: 1px solid #ddd8cf;
    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow:
        0 24px 65px rgba(30, 26, 20, 0.07);

    backdrop-filter: blur(8px);
}

.signin-card h2 {
    margin: 0 0 26px;

    text-align: center;

    font-size: 28px;
    line-height: 1;
    font-weight: 450;
    letter-spacing: -0.03em;

    color: #111111;
}


/* =========================================================
   ERRORS
========================================================= */

.auth-error {
    margin: 0 0 20px;
    padding: 12px 14px;

    border: 1px solid #d9bbb6;
    border-radius: 11px;

    background: #fff8f7;

    font-size: 13px;
    line-height: 1.45;

    color: #7a3029;
}


/* =========================================================
   FIELDS
========================================================= */

.field {
    display: block;

    margin: 0 0 19px;
}

.field > span,
.method-fieldset legend {
    display: block;

    margin: 0 0 8px;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;

    color: #222222;
}

.field input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #d5d0c7;
    border-radius: 13px;
    outline: none;

    background: rgba(255, 255, 255, 0.72);
    color: #171717;

    font: inherit;
    font-size: 15px;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.field input::placeholder {
    color: #aaa69f;
}

.field input:focus {
    border-color: #8f887d;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(120, 112, 100, 0.08);
}


/* =========================================================
   PIN / PASSWORD
========================================================= */

.method-fieldset {
    margin: 0 0 19px;
    padding: 0;

    border: 0;
}

.method-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 4px;

    border-radius: 999px;

    background: #efede7;
}

.method-toggle label {
    position: relative;

    cursor: pointer;
}

.method-toggle input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.method-toggle span {
    height: 40px;

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

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    color: #77736b;

    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.method-toggle input:checked + span {
    background: #ffffff;
    color: #111111;

    box-shadow:
        0 2px 9px rgba(20, 18, 15, 0.08);
}


/* =========================================================
   ENTER
========================================================= */

.enter-button {
    position: relative;

    width: 100%;
    height: 52px;

    margin-top: 2px;

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

    border: 0;
    border-radius: 999px;

    background: #171717;
    color: #ffffff;

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

    cursor: pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

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

    background: #000000;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}

.enter-button:active {
    transform: translateY(0);
}

.enter-button .arrow {
    position: absolute;
    right: 22px;

    font-size: 19px;
    font-weight: 400;
}


/* =========================================================
   RECOVERY
========================================================= */

.forgot-link {
    width: fit-content;

    display: block;

    margin: 19px auto 0;

    color: #4d4943;

    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   SHORT LAPTOP SCREENS
========================================================= */

@media (max-height: 780px) and (min-width: 601px) {

    .private-entry {
        padding: 22px 0;
    }

    .entry-heading {
        margin-bottom: 20px;
    }

    .nemi-wordmark {
        font-size: 21px;
    }

    .gold-line {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .private-label {
        margin-bottom: 10px;
    }

    .entry-heading h1 {
        font-size: 29px;
    }

    .ready-message {
        margin-top: 6px;

        font-size: 14px;
    }

    .signin-card {
        padding: 25px 32px 22px;
    }

    .signin-card h2 {
        margin-bottom: 19px;

        font-size: 25px;
    }

    .field {
        margin-bottom: 14px;
    }

    .field input {
        height: 46px;
    }

    .method-fieldset {
        margin-bottom: 14px;
    }

    .method-toggle span {
        height: 35px;
    }

    .enter-button {
        height: 47px;
    }

    .forgot-link {
        margin-top: 14px;
    }
}


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

@media (max-width: 600px) {

    .private-entry {
        width: 90%;

        justify-content: flex-start;

        padding: 42px 0 36px;
    }

    .entry-heading {
        margin-bottom: 24px;
    }

    .nemi-wordmark {
        font-size: 21px;
    }

    .gold-line {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .entry-heading h1 {
        font-size: 30px;
    }

    .ready-message {
        font-size: 15px;
    }

    .signin-card {
        padding: 28px 21px 25px;

        border-radius: 21px;
    }

    .signin-card h2 {
        margin-bottom: 23px;

        font-size: 26px;
    }

    .field input {
        height: 50px;
    }
}

/* =========================================================
   PRIVATE ACCESS — FINAL PROPORTIONS
========================================================= */

@media (min-width: 601px) {

    .private-entry {
        width: min(90%, 490px);
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .entry-heading {
        margin-bottom: 24px;
    }

    .nemi-wordmark {
        font-size: 22px;
    }

    .gold-line {
        width: 42px;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .private-label {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .entry-heading h1 {
        font-size: 30px;
    }

    .ready-message {
        margin-top: 7px;
        font-size: 14px;
    }

    .signin-card {
        padding: 29px 34px 26px;
        border-radius: 22px;
    }

    .signin-card h2 {
        margin-bottom: 23px;
        font-size: 26px;
    }

    .field {
        margin-bottom: 16px;
    }

    .field input {
        height: 48px;
    }

    .method-fieldset {
        margin-bottom: 16px;
    }

    .method-toggle span {
        height: 37px;
    }

    .enter-button {
        height: 48px;
    }

    .forgot-link {
        margin-top: 16px;
    }
}

/* =========================================================
   FINAL FIT
========================================================= */

@media (min-width: 601px) {

    .private-entry {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .entry-heading {
        margin-bottom: 18px;
    }

    .gold-line {
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .private-label {
        margin-bottom: 9px;
    }

    .ready-message {
        margin-top: 5px;
    }

    .signin-card {
        padding-top: 24px;
        padding-bottom: 21px;
    }

    .signin-card h2 {
        margin-bottom: 18px;
    }

    .field {
        margin-bottom: 13px;
    }

    .method-fieldset {
        margin-bottom: 13px;
    }

    .forgot-link {
        margin-top: 13px;
    }
}
