﻿/* Neverland V1.6.3 — isolated auth presentation. Does not change OAuth forms. */
:root {
    --nl-auth-ink: #1f2941;
    --nl-auth-muted: #718099;
    --nl-auth-line: #e1e7f1;
    --nl-auth-brand: #5259d6;
    --nl-auth-brand-dark: #4147bd;
}

/* The standalone page must not inherit generic restaurant layout dimensions. */
html:has(body.nl-auth-document) { min-height: 100%; }
body.nl-auth-document {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: block;
    background:
        radial-gradient(ellipse at 12% 7%, rgba(110, 124, 238, .14), transparent 36%),
        radial-gradient(ellipse at 88% 100%, rgba(130, 94, 202, .11), transparent 36%),
        #f5f7fb;
    color: var(--nl-auth-ink);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.nl-auth, .nl-auth * { box-sizing: border-box; }
.nl-auth-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 38px 20px;
}
.nl-auth--page { width: min(100%, 448px); }
.nl-auth__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 23px;
}
.nl-auth__monogram {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242c4b;
    color: #fff;
    border-radius: 13px;
    font-weight: 800;
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.07em;
    box-shadow: 0 8px 20px rgba(35, 42, 80, .16);
}
.nl-auth__brand-dot { color: #b8a7ff; }
.nl-auth__brand-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .19em;
    color: #263050;
}
.nl-auth__card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e8edf6;
    padding: 35px 34px 31px;
    box-shadow: 0 18px 55px rgba(34, 47, 86, .10), 0 3px 12px rgba(34, 47, 86, .035);
}
.nl-auth__header { margin-bottom: 27px; }
.nl-auth__title {
    margin: 0;
    font-size: 29px;
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-align: center;
    color: #222a42;
}
.nl-auth__subtitle {
    margin: 11px 0 0;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--nl-auth-muted);
}
.nl-auth__form { margin: 0; }
.nl-auth .nl-auth__field { margin: 0 0 19px; }
.nl-auth .nl-auth__label {
    display: block;
    margin: 0 0 8px;
    font-weight: 650;
    font-size: 13px;
    line-height: 1.4;
    color: #35415b;
}
.nl-auth .nl-auth__control-wrap { position: relative; }
.nl-auth .nl-auth__field-icon {
    pointer-events: none;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #8b96ab;
}
.nl-auth .nl-auth__input {
    display: block;
    width: 100%;
    height: 51px;
    min-width: 0;
    padding: 0 14px 0 47px;
    border: 1px solid #dce3ee;
    border-radius: 12px;
    background: #f9faff;
    box-shadow: none;
    color: #23304a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.nl-auth .nl-auth__input::placeholder { color: #a0aabe; opacity: 1; }
.nl-auth .nl-auth__input:hover { border-color: #bdc8de; }
.nl-auth .nl-auth__input:focus {
    outline: none;
    background: #fff;
    border-color: #7d84e7;
    box-shadow: 0 0 0 3px rgba(93, 96, 213, .13);
}
.nl-auth .nl-auth__validation {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
}
.nl-auth .nl-auth__validation:empty { display: none; }
.nl-auth .nl-auth__submit {
    width: 100%;
    min-height: 51px;
    margin-top: 5px;
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(105deg, #546de0 0%, #6651c8 100%);
    box-shadow: 0 7px 16px rgba(77, 83, 198, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 160ms ease, box-shadow 160ms ease;
}
.nl-auth .nl-auth__submit:hover:not(:disabled) {
    filter: brightness(.96);
    box-shadow: 0 9px 22px rgba(77, 83, 198, .22);
}
.nl-auth .nl-auth__submit:disabled {
    opacity: .84;
    cursor: progress;
}
.nl-auth .nl-auth__submit:focus-visible,
.nl-auth .nl-social-login__button:focus-visible {
    outline: 3px solid #a3a7ff;
    outline-offset: 3px;
}
/* Critical: stylesheet display:flex must never override the [hidden] attribute. */
.nl-auth .btn-text[hidden],
.nl-auth .btn-loader[hidden],
.nl-auth [hidden] { display: none !important; }
.nl-auth .btn-loader {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 650;
}
.nl-auth__spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: nl-auth-spin .65s linear infinite;
}
@keyframes nl-auth-spin { to { transform: rotate(360deg); } }

/* Shared Google / Facebook partial: preserve POST forms, only adjust presentation. */
.nl-auth .nl-social-login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 11px;
    max-width: none;
    margin: 20px 0 0;
    font-family: inherit;
}
.nl-auth .nl-social-login__separator {
    display: flex;
    gap: 13px;
    align-items: center;
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #8c97aa;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    line-height: 1.5;
}
.nl-auth .nl-social-login__separator::before,
.nl-auth .nl-social-login__separator::after {
    content: '';
    height: 1px;
    background: #e5eaf3;
    flex: 1;
}
.nl-auth .nl-social-login__form,
.nl-auth .nl-social-login__form:last-child {
    margin: 0;
    width: 100%;
    min-width: 0;
}
.nl-auth .nl-social-login .nl-social-login__button {
    width: 100%;
    min-height: 49px;
    padding: 9px 9px 9px 42px;
    border: 1px solid var(--nl-auth-line);
    border-radius: 12px;
    background: #fff;
    color: #30405d;
    box-shadow: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease;
}
.nl-auth .nl-social-login .nl-social-login__button:hover {
    filter: none;
    background: #f6f8fe;
    border-color: #c9d2e6;
    box-shadow: none;
}
.nl-auth .nl-social-login__icon {
    width: 36px;
    left: 5px;
}
.nl-auth .nl-social-login__icon--google {
    border: none;
    background: transparent;
}
.nl-auth .nl-social-login__icon--facebook { background: transparent; }
.nl-auth .nl-social-login__label { white-space: normal; }

/* Bootstrap modal uses the same input and social UI, but keeps its own scroll behavior. */
#loginModal.nl-login-modal .modal-dialog { max-width: 465px; padding: 0 12px; margin-left: auto; margin-right: auto; }
#loginModal.nl-login-modal .modal-content {
    border: 1px solid #e2e7f2;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 65px rgba(16, 24, 55, .22);
}
#loginModal.nl-login-modal .modal-header.nl-login-modal__header {
    padding: 20px 25px;
    border: 0;
    background: linear-gradient(113deg,#29365e,#51468d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nl-login-modal__heading { display: flex; align-items: center; gap: 12px; }
.nl-login-modal__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 11px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.08em;
}
.nl-login-modal__brand { font-size: 10px; font-weight: 800; letter-spacing: .16em; opacity: .76; }
#loginModal.nl-login-modal .modal-title { margin: 3px 0 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
#loginModal.nl-login-modal .modal-body.nl-auth { padding: 25px 27px 28px; }
#loginModal.nl-login-modal .btn-close { flex: 0 0 auto; box-shadow: none; opacity: .86; }
#loginModal.nl-login-modal .btn-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 520px) {
    .nl-auth-page { padding: 26px 16px; }
    .nl-auth__brand { margin-bottom: 18px; }
    .nl-auth__card { padding: 28px 21px 26px; border-radius: 20px; }
    .nl-auth__title { font-size: 26px; }
    .nl-auth .nl-social-login { grid-template-columns: minmax(0,1fr); row-gap: 9px; }
    .nl-auth .nl-social-login__separator { margin-bottom: 3px; }
    .nl-auth .nl-social-login .nl-social-login__button { font-size: 14px; padding-left: 45px; }
    #loginModal.nl-login-modal .modal-body.nl-auth { padding: 22px 20px 25px; }
    #loginModal.nl-login-modal .modal-header.nl-login-modal__header { padding: 17px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .nl-auth__spinner { animation-duration: 1.4s; }
    .nl-auth .nl-auth__input,
    .nl-auth .nl-auth__submit,
    .nl-auth .nl-social-login .nl-social-login__button { transition: none; }
}

/* NEVERLAND V1.6.4 MODAL INPUT ICON ALIGNMENT START */
/* Scope: login popup only. Resolve legacy high-specificity input padding overrides. */
#loginModal.nl-login-modal .modal-body.nl-auth .nl-auth__control-wrap {
    position: relative !important;
}
#loginModal.nl-login-modal .modal-body.nl-auth .nl-auth__control-wrap > svg.nl-auth__field-icon {
    position: absolute !important;
    display: block !important;
    top: 50% !important;
    bottom: auto !important;
    left: 16px !important;
    right: auto !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2;
}
#loginModal.nl-login-modal .modal-body.nl-auth #loginEmail.nl-auth__input,
#loginModal.nl-login-modal .modal-body.nl-auth #loginPassword.nl-auth__input {
    padding-left: 54px !important;
    padding-inline-start: 54px !important;
    text-indent: 0 !important;
}
/* NEVERLAND V1.6.4 MODAL INPUT ICON ALIGNMENT END */

/* V165 MOBILE POPUP LOGIN FIX START */
@media (max-width: 768px) {

    .nl-auth-modal .nl-auth-input-wrap,
    .nl-login-modal .nl-auth-input-wrap,
    .nl-auth-modal .form-group,
    .nl-login-modal .form-group {
        position: relative !important;
    }

    .nl-auth-modal .nl-auth-input-icon,
    .nl-login-modal .nl-auth-input-icon,
    .nl-auth-modal .input-icon,
    .nl-login-modal .input-icon,
    .nl-auth-modal .form-group > svg,
    .nl-login-modal .form-group > svg {
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;
        z-index: 3 !important;
        color: #8b96ad !important;
    }

    .nl-auth-modal input[type="email"],
    .nl-auth-modal input[type="text"],
    .nl-auth-modal input[type="password"],
    .nl-login-modal input[type="email"],
    .nl-login-modal input[type="text"],
    .nl-login-modal input[type="password"] {
        padding-left: 60px !important;
        padding-right: 16px !important;
        text-indent: 0 !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        box-sizing: border-box !important;
    }

    .nl-auth-modal input:-webkit-autofill,
    .nl-auth-modal input:-webkit-autofill:hover,
    .nl-auth-modal input:-webkit-autofill:focus,
    .nl-login-modal input:-webkit-autofill,
    .nl-login-modal input:-webkit-autofill:hover,
    .nl-login-modal input:-webkit-autofill:focus {
        -webkit-text-fill-color: #1f2d3d !important;
        padding-left: 60px !important;
        transition: background-color 99999s ease-in-out 0s !important;
    }
}
/* V165 MOBILE POPUP LOGIN FIX END */


/* Registration password requirements */
#registerForm .nl-register-password-hint {
    margin: -.4rem 0 1rem;
    padding: .65rem .8rem;
    border-inline-start: 3px solid #ab7d35;
    border-radius: 8px;
    background: #f8f0df;
    color: #293e50;
    font-size: .85rem;
    line-height: 1.45;
}
