:root {
    --np-auth-primary:        #ff6e00;
    --np-auth-primary-light:  #fff5ec;
    --np-auth-primary-peach:  #ffd1ad;
    --np-auth-text:           #333333;
    --np-auth-text-muted:     #8b8b8b;
    --np-auth-border:         #BBBBBB;
    --np-auth-border-strong:  #D9D9D9;
    --np-auth-bg-soft:        #f5f5f5;
    --np-auth-success:        #21a32b;
    --np-auth-danger:         #bf1313;
    --np-auth-danger-light:   #fdecec;
    --np-auth-link:           #2E82E1;
    --np-auth-disabled-bg:    #dddddd;
    --np-auth-disabled-text:  #ffffff;
}

.np-auth-page {
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-auth-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}
.np-auth-card {
    width: 100%;
    max-width: 393px;
    background: #ffffff;
    border: 1px solid var(--np-auth-border);
    border-radius: 10px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: inherit;
    z-index: 2;
}

.np-auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 35px;
    position: relative;
}
a.np-auth-logo {
    margin-inline: auto;
}
.np-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--np-auth-text);
    text-decoration: none;
    transition: background-color 0.15s;
    position: absolute;
    right: 0;
}
.np-auth-back:hover { background: var(--np-auth-bg-soft); }
.np-auth-logo img { display: block; max-height: 36px; width: auto; }

.np-auth-card-body { width: 100%; }

.np-auth-card-footer {
    margin-top: 20px;
}
.np-auth-terms {
    margin: 20px 0 0;
    font-size: 11px;
    color: var(--np-auth-text-muted);
    text-align: center;
    line-height: 1.7;
}
.np-auth-terms a { color: var(--np-auth-link); text-decoration: none; }
.np-auth-terms a:hover { text-decoration: underline; }


/*.np-auth-step--hidden { display: none !important; }*/
.np-auth-legacy-slot { display: none !important; }

.np-auth-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--np-auth-text);
    line-height: 1.5;
}
.np-auth-subtitle {
    margin: 0 0 5px;
    font-size: 13px;
    color: var(--np-auth-text-muted);
    line-height: normal;
}
.np-auth-hint {
    margin: 0 0 5px;
    font-size: 11px;
    color: var(--np-auth-text-muted);
    line-height: 1.7;
}

.np-auth-form { display: flex; flex-direction: column; gap: 15px; }
.np-auth-field { position: relative; }
.np-auth-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    color: var(--np-auth-text);
}
.np-auth-input {
    width: 100%;
    height: var(--control-height-xl);
    padding: 0 14px;
    background: var(--np-auth-bg-soft) !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    font-size: var(--font-size-14);
    color: var(--np-auth-text);
    outline: none !important;
    font-family: inherit;
    text-align: right;
    transition: border-color 0.15s, background-color 0.15s;
}
.np-auth-input::placeholder { color: var(--np-auth-text-muted); }
.np-auth-input:focus {
    background: #ffffff !important;
    border-color: #333333 !important;
}
.np-auth-input--mobile { direction: ltr; text-align: left; }


.np-auth-input--password { padding-left: 44px; }
.np-auth-toggle-password {
    position: absolute;
    left: 8px;
    top: 33px !important;
    transform: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--np-auth-text-muted);
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}
.np-auth-toggle-password:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--np-auth-text);
}


.np-auth-field:has(.np-auth-label) .np-auth-toggle-password {
    top: auto;
    bottom: 8px;
    transform: none;
}

.np-auth-error {
    margin: 0;
    min-height: 16px;
    font-size: 12px;
    color: var(--np-auth-danger);
    line-height: 1.7;
}
.np-auth-error:empty { display: none; }


.np-auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: var(--np-auth-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, background-color 0.15s;
}
.np-auth-btn-primary:hover:not(:disabled) { opacity: 0.95; }
.np-auth-btn-primary:disabled {
    background: var(--np-auth-disabled-bg);
    color: var(--np-auth-disabled-text);
    cursor: not-allowed;
}


.np-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--np-auth-link);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.np-auth-link:hover { opacity: 0.85; }
.np-auth-link svg { flex-shrink: 0; }

.np-auth-link--alt {
    display: flex;
    justify-content: flex-end;
    width: max-content;
    margin-right: auto;
}
.np-auth-link--support { margin-bottom: 20px; }

.np-auth-alt-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 4px;
}
.np-auth-alt-sep { color: var(--np-auth-border-strong); }


.np-auth-notice {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--np-auth-primary-light);
    border: 1px solid var(--np-auth-primary-peach);
    border-radius: 6px;
    font-size: 11px;
    color: var(--np-auth-text);
    line-height: 1.8;
}

.np-auth-subtitle--otp { font-size: 13px; }
.np-auth-subtitle--otp strong,
.np-auth-subtitle--otp b { color: var(--np-auth-text); font-weight: 700; }

.np-auth-otp-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.np-auth-resend-slot {
    flex: 0 0 auto;
    position: relative;
}
.np-auth-step1-submit-wrap {
    position: relative;
}
.np-auth-otp-row-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.np-auth-otp-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    direction: ltr;
}
.np-auth-otp-cell {
    width: 49px;
    height: 49px;
    background: #F5F5F5 !important;
    border: none !important;
    border-radius: 7px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--np-auth-text);
    outline: none !important;
    font-family: inherit;
    padding: 0 !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.3s !important;
}
.np-auth-otp-cell:focus {
    border-bottom: 2px solid var(--np-auth-primary) !important;
    box-shadow: none !important;
}

.np-auth-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 49px;
    font-size: 12px;
    font-weight: 500;
    max-width: 102px;
    border-radius: 7px;

    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
    transition: opacity 0.15s;
}

.np-auth-resend:hover:not(:disabled) { opacity: 0.85; }
.np-auth-resend:disabled { cursor: not-allowed; }




.nikanpanel-resend-code a,
.nikanpanel-resend-code button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 49px;
    padding: 0 12px;
    width: 102px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    border: 1px solid var(--np-auth-primary);
    background: #ffffff;
    color: var(--np-auth-primary) !important;
    cursor: pointer;
    text-decoration: none;
}
.np-auth-resend.is-timing {
    color: #D5894F !important;
    background: #FFF6F0 !important;
    font-size: 12px;
    padding: 0;
    width: 102px;
    border: none !important;
}
.np-auth-link--login-pass { margin-top: 4px; }

.np-auth-btn-otp-submit {
    height: 46px;
}


.np-auth-register-3a,
.np-auth-register-3b { display: block; }
.np-auth-register-3a[hidden],
.np-auth-register-3b[hidden] { display: none !important; }

.np-auth-gender {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.np-auth-gender-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    background: transparent;
    border: 1px solid #DDDDDD;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--np-auth-text);
    transition: border-color 0.15s, background-color 0.15s;
}
.np-auth-gender-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.np-auth-gender-dot {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border: 1px solid var(--np-auth-border-strong);
    border-radius: 4px;
    flex-shrink: 0;
    transition: border-color 0.15s, background-color 0.15s;
}
.np-auth-gender-chip:has(input:checked) {
    background: #ffffff;
    border-color: var(--np-auth-primary);
}
.np-auth-gender-chip:has(input:checked) .np-auth-gender-dot {
    background: var(--np-auth-primary);
    border-color: var(--np-auth-primary);
}

.np-auth-pw-rules {
    list-style: none;
    margin: 0;
    padding: 5px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.np-auth-pw-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--np-auth-text-muted);
    line-height: 1.5;
}
.np-auth-pw-rule-dot {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--np-auth-border-strong);
    border-radius: 50%;
    flex-shrink: 0;
}
.np-auth-pw-rule.is-ok { color: var(--np-auth-success); }
.np-auth-pw-rule.is-ok .np-auth-pw-rule-dot {
    border-color: var(--np-auth-success);
    background: var(--np-auth-success);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.np-auth-duplicate-list { display: flex; flex-direction: column; gap: 10px; }
.np-auth-duplicate-list > * {
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.np-auth-duplicate-list > *:hover { border-color: var(--np-auth-primary); }
.np-auth-back{transform: rotate(180deg)}
.np-auth-link--alt span {
    color: #333;
}
input.form-control.np-auth-input[type="email"]::placeholder {
    text-align: left;
}
input.form-control.np-auth-input[type="email"] {
    text-align: left !important;
}
/* ============================================================
 * Channel picker MODAL
 * Shared by step 1 (first send) and step 2 (resend).
 * ============================================================ */
.np-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-auth-modal[hidden] { display: none; }
.np-auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.np-auth-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: calc(100vw - 32px);
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.np-auth-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--np-auth-border);
}
.np-auth-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--np-auth-text);
}
.np-auth-modal-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--np-auth-text);
    transition: background-color 0.15s;
}
.np-auth-modal-close:hover { background: var(--np-auth-bg-soft); }

.np-auth-modal-body { padding: 0; }

.np-auth-channel-list {
    list-style: none;
    margin: 0;
    padding: 0 16px;
}
.np-auth-channel-list li + li { border-top: 1px solid var(--np-auth-border); }
.np-auth-channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--np-auth-text);
    text-align: right;
    transition: background-color 0.15s;
    border-radius: 8px;
}
.np-auth-channel-item:hover { background: #F5F5F5; }
.np-auth-channel-item-chevron { flex-shrink: 0; color: var(--np-auth-link); }
img.np2-logo-symbol {
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

.np-auth-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
}
.np-auth-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
    pointer-events: auto;
}

.np-auth-success-overlay::before,
.np-auth-success-overlay::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #2196f3;
}
.np-auth-success-overlay::before { top: 0; }
.np-auth-success-overlay::after  { bottom: 0; }

.np-auth-success-card {
    text-align: center;
    padding: 16px;
}
.np-auth-success-greeting {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 1.7;
}
.np-auth-success-brand {
    color: #ff6e00;
    font-weight: 700;
}
.np-auth-success-transitioning {
    margin: 0;
    font-size: 13px;
    color: #8b8b8b;
    line-height: 1.7;
}
#np-auth-channel-modal .np-auth-modal-content {
    max-width: 375px;
}
#np-auth-channel-modal .np-auth-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-inline: 16px;
    border-bottom: 1px solid var(--np-auth-border);
}
.np-finded-accounts-count {
    color: #ABABAB;
    font-size: 11px;
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}
.np-finded-accounts-count::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #D9D9D9;
}
.np-auth-channel-list li{
    padding-block: 4px;
}
.np-finded-accounts-inner {
    display: flex;
    flex-direction: column;
    padding: 12px 45px 12px 0;
    position: relative;
    border: 1px solid #BBBBBB;
    border-radius: 10px;
    gap: 5px;
}
.np-auth-duplicate-list > * {
    gap: 10px;
}
.nikanpannel-btn-duplicate-user-btn {
    position: absolute;
    right: 15px;
    padding: 0;
    background: transparent !important;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #AAAAAA !important;
}
.np-finded-accounts-row {
    padding-left: 15px;
    padding-right: 0;
}
.row.np-finded-accounts {
    max-height: 373px;
    overflow-y: auto;
    padding-left: 0;
    margin: 0;
}
.nikanpannel-btn-duplicate-user-btn::before {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
}
.np-finded-accounts-inner:hover .nikanpannel-btn-duplicate-user-btn::before{
    background-color: var(--bs-primary);
}
.np-finded-accounts-inner:hover .nikanpannel-btn-duplicate-user-btn{
    border: 1px solid var(--bs-primary) !important;
}
a.btn.nikanpanel-btn-primary.nikanpannel-btn-duplicate-user {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    border: none !important;
}
.modal-body.np-auth-card {
    width: 393px;
}
.np-auth-gender-dot {
    position: relative;
}
.np-auth-gender-chip:has(input:checked) .np-auth-gender-dot::before {
    content: '';
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBMaWNlbnNlOiBQRC4gTWFkZSBieSBNYXJ5IEFrdmVvOiBodHRwczovL21hcnlha3Zlby5jb20vIC0tPgo8c3ZnIGZpbGw9IiMwMDAiIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBpZD0iY2hlY2siIGRhdGEtbmFtZT0iTGluZSBDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0iaWNvbiBsaW5lLWNvbG9yIj48cG9seWxpbmUgaWQ9InByaW1hcnkiIHBvaW50cz0iNSAxMiAxMCAxNyAxOSA4IiBzdHlsZT0iZmlsbDogbm9uZTsgc3Ryb2tlOiByZ2IoMjU1LCAyNTUsIDI1NSk7IHN0cm9rZS1saW5lY2FwOiByb3VuZDsgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsgc3Ryb2tlLXdpZHRoOiAyOyI+PC9wb2x5bGluZT48L3N2Zz4=");
    width: 15px;
    height: 15px;
    position: absolute;
    left: 0;
    background-size: 15px;
}
@media (max-width: 575px) {
    .modal-body.np-auth-card {
        width: 100%;
        max-width: 100%;
        padding-inline: 16px;
        gap: 16px;
    }
    #nikanpanel-cart-page-popup-modal .modal-content{
        width: 100% !important;
    }
    #np-auth-channel-modal .np-auth-modal-content {
        max-width: 100%;
    }
    .np-auth-success-greeting { font-size: 14px; }
    .np-auth-success-transitioning { font-size: 12px; }
    img.np2-logo-symbol{display: none;}
    .np-auth-modal { align-items: flex-end; }
    .np-auth-modal-content {
        width: 100%;
        max-width: none;
        border-radius: 12px 12px 0 0;
    }
    .np-auth-card-body {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: end;
    }
    .np-auth-card-footer{
        margin-top: 20px;
        height: 100%;
    }
    .np-auth-page { padding: 16px 0; align-items: flex-start; }
    .np-auth-card {
        max-width: 100%;
        padding: 18px 0;
        border: none;
        height: 100%;
    }
    .np-auth-shell {
        height: 100vh;
    }
    .np-auth-card-header {
        margin-bottom: 0;
    }
    .np-auth-title { font-size: 15px; }
    .np-auth-subtitle { font-size: 10px; margin-bottom: 10px;}
    .np-auth-input {
        width: 100%;
        height: var(--control-height-xl);
        padding: 0 15px;
        font-size: var(--font-size-13);
    }
    .np-auth-link {
        font-size: 12px;
    }
    .np-auth-btn-primary {
        height: 42px;
    }
    .np-auth-terms {
        font-size: 10px;
    }
    .np-auth-page .np-auth-card-body {
        justify-content: center;
    }
    p.nikanpanel-enter-verification-code.np-auth-subtitle.np-auth-subtitle--otp {
        font-size: 12px;
    }
    .np-auth-otp-cell { font-size: 16px !important; }
    .np-auth-otp-inputs {
        flex: none;
        gap: 10px;
        width: auto;
    }
    .np-auth-otp-row{
        justify-content: center;
    }
    .nikanpanel-resend-code a,
    .nikanpanel-resend-code button { height: 46px; padding: 0 8px; font-size: 10px; }

    .np-auth-pw-rules { gap: 10px; }
}
