/* ==========================================================================
   AUTH PAGES (Login + Register) — shared skin.  nicepe.xyz local layer.
   Loaded explicitly by resources/views_local/auth/{login,register}.blade.php via
   @push('styles'), so the (overridden) markup is styled even with ?noskin=1.
   Page-only extras live in pages/register.css and pages/login.css.

   Look = the owner's "NICE PRO" reference: deep-navy brand panel (same navy as the
   admin sidebar), pale-blue canvas, white flat card, solid blue primary, soft
   shadows only.  No 3D: no inset highlights, bevels, glossy gradients or hover lift.
   Class prefix `na-` (Nice Auth) on purpose — no clash with other pages' np- classes or bootstrap.
   Every colour is a --np- token from np-tokens.css; the fallbacks in the alias block
   below only matter if that file is not loaded.
   ========================================================================== */

.na {
    /* local aliases: token first, fallback second */
    --na-primary:        var(--np-primary, #2557e9);
    --na-primary-hover:  var(--np-primary-hover, #1d47c8);
    --na-primary-soft:   var(--np-primary-soft, #e8efff);
    --na-primary-line:   var(--np-primary-line, #bfd0fb);
    --na-ink:            var(--np-ink, #0f1a4a);
    --na-ink-2:          var(--np-ink-2, #24325e);
    --na-muted:          var(--np-muted, #64748b);
    --na-line:           var(--np-line, #e3e9f4);
    --na-line-2:         var(--np-line-2, #cfd8ea);
    --na-bg:             var(--np-bg, #eef3fb);
    --na-surface:        var(--np-surface, #ffffff);
    --na-surface-2:      var(--np-surface-2, #f5f8fd);
    --na-side:           var(--np-side-bg, #10213f);
    --na-side-top:       var(--np-side-bg-top, #0a2a5a);
    --na-side-line:      var(--np-side-line, rgba(148,175,230,.16));
    --na-side-muted:     var(--np-side-muted, #9fb0d0);
    --na-side-sub:       var(--np-side-sub, #b7c3dd);
    --na-success:        var(--np-success, #15803d);
    --na-success-soft:   var(--np-success-soft, #d7f6e5);
    --na-danger:         var(--np-danger, #b91c1c);
    --na-danger-soft:    var(--np-danger-soft, #fee0e0);
    --na-shadow-sm:      var(--np-shadow-sm, 0 1px 3px rgba(30,60,120,.06));
    --na-ring:           var(--np-ring, 0 0 0 3px rgba(37,87,233,.20));

    display: grid;
    grid-template-columns: minmax(340px, 42%) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--na-bg);
    color: var(--na-ink-2);
    font-family: var(--np-font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.na *, .na *::before, .na *::after { box-sizing: border-box; }
.na a { text-decoration: none; }

/* ---------------------------------------------------------------- brand panel */
.na-brand {
    display: flex;
    flex-direction: column;
    padding: 34px 44px 30px;
    color: #fff;
    background-color: var(--na-side);
    background-image: linear-gradient(180deg, var(--na-side-top) 0, rgba(10,42,90,0) 280px);
    border-right: 1px solid var(--na-side-line);
}
.na-brand__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.na-brand__hdrlink { display: none; }

.na-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.na-logo:hover { color: #fff; }
.na-logo__mark {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--na-primary);
    color: #fff;
    font-size: 20px; font-weight: 800; line-height: 1;
}
.na-logo__mark--img { background: #fff; padding: 4px; }
.na-logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.na-logo__name {
    font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.na-pitch { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.na-pitch__title {
    max-width: 420px;
    margin: 0 0 28px;
    font-size: 29px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
    color: #fff;
}
.na-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.na-perk { display: flex; align-items: flex-start; gap: 14px; }
.na-perk__ic {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    color: #9dbdff; font-size: 16px;
}
.na-perk__tx { display: flex; flex-direction: column; min-width: 0; }
.na-perk__tx strong { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.na-perk__tx small { font-size: 13px; color: var(--na-side-sub); line-height: 1.45; margin-top: 2px; }

.na-brand__foot { min-height: 20px; font-size: 13px; color: var(--na-side-muted); }
.na-help a { color: #dbe5fb; font-weight: 600; }
.na-help a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ main + card */
.na-main {
    display: flex; align-items: center; justify-content: center;
    padding: 28px;
    min-width: 0;
}
.na-card {
    width: 100%;
    max-width: 560px;
    padding: 28px 32px 22px;
    background: var(--na-surface);
    border: 1px solid var(--na-line);
    border-radius: 14px;
    box-shadow: var(--na-shadow-sm);
}
.na-card__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--na-ink); line-height: 1.25; }
.na-card__sub { margin: 4px 0 18px; font-size: 14px; color: var(--na-muted); }
.na-card__foot {
    margin: 16px 0 0; padding-top: 14px;
    border-top: 1px solid var(--na-line);
    text-align: center; font-size: 14px; color: var(--na-ink-2);
}
.na-link { color: var(--na-primary); font-weight: 700; }
.na-link:hover { color: var(--na-primary-hover); text-decoration: underline; }
.na-link:focus-visible, .na-brand a:focus-visible { outline: 2px solid var(--na-primary); outline-offset: 2px; border-radius: 4px; }
.na-brand a:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------- alerts */
.na-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 0 0 16px; padding: 10px 12px;
    border-radius: 10px; font-size: 13px; line-height: 1.45;
}
.na-alert i { margin-top: 2px; }
.na-alert > div > div + div { margin-top: 2px; }
.na-alert--ok  { background: var(--na-success-soft); color: var(--na-ink-2); font-weight: 600; }   /* success green on its soft bg is 4.35:1, so the text is ink and only the icon is green */
.na-alert--ok i { color: var(--na-success); }
.na-alert--bad { background: var(--na-danger-soft);  color: var(--na-danger);  font-weight: 600; }

/* ---------------------------------------------------------------------- fields */
.na-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.na-field { min-width: 0; }
.na-field--full { grid-column: 1 / -1; }
.na-field--ns { margin-top: 14px; }
.na-label { display: block; margin: 0 0 5px; padding: 0; font-size: 13px; font-weight: 600; color: var(--na-ink); line-height: 1.3; float: none; width: auto; }
.na-input {
    display: block; width: 100%; height: 42px;
    padding: 0 12px;
    font: inherit; font-size: 14px; color: var(--na-ink);
    background: var(--na-surface);
    border: 1px solid var(--na-line-2);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none; -webkit-appearance: none;
}
.na-input::placeholder { color: var(--na-muted); opacity: 1; }
.na-input:hover { border-color: #b8c5de; }
.na-input:focus { outline: none; border-color: var(--na-primary); box-shadow: var(--na-ring); }
.na-input.is-invalid { border-color: var(--na-danger); }
.na-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(185,28,28,.18); }
.na-input--area { height: auto; min-height: 64px; padding: 9px 12px; resize: vertical; }
.na-select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.na-error { margin: 5px 0 0; font-size: 12.5px; font-weight: 500; color: var(--na-danger); line-height: 1.35; }

/* +91 prefix */
.na-ig { display: flex; }
.na-ig__pre {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 11px;
    font-size: 14px; font-weight: 600; color: var(--na-ink-2);
    background: var(--na-surface-2);
    border: 1px solid var(--na-line-2); border-right: 0;
    border-radius: 10px 0 0 10px;
}
.na-ig .na-input { border-radius: 0 10px 10px 0; min-width: 0; }

/* Show/hide eye — built by layouts/app -> partials.password-toggle (.npw-wrap/.npw-btn) */
.na .npw-wrap { display: block; position: relative; }
.na .npw-wrap > .na-input { padding-right: 46px; }
.na .npw-btn { width: 44px; color: var(--na-muted); border-radius: 0 10px 10px 0; }
.na .npw-btn:hover { color: var(--na-primary); }
.na .npw-btn:focus-visible { outline: 2px solid var(--na-primary); outline-offset: -2px; color: var(--na-primary); }

/* ---------------------------------------------------------------- submit button */
.na-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 46px; margin-top: 18px; padding: 0 16px;
    font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .005em; color: #fff;
    background: var(--na-primary);
    border: 0; border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.na-btn:hover { background: var(--na-primary-hover); }
.na-btn:focus-visible { outline: none; box-shadow: var(--na-ring); }
.na-btn.is-busy { opacity: .75; cursor: progress; pointer-events: none; }
.na-note { margin: 10px 0 0; font-size: 12.5px; color: var(--na-muted); line-height: 1.45; text-align: center; }
.na-note__pay { display: block; margin-top: 2px; }
.na-note__pay[hidden] { display: none; }

/* -------------------------------------------- account type (segmented control) */
.na-seg { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.na-seg > .na-label { margin-bottom: 6px; }
.na-seg__track { display: grid; grid-template-columns: repeat(var(--na-n, 3), minmax(0, 1fr)); gap: 8px; }
.na-seg__item { position: relative; display: flex; margin: 0; cursor: pointer; }
.na-seg__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.na-seg__box {
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-height: 54px; padding: 7px 6px; text-align: center;
    background: var(--na-surface);
    border: 1.5px solid var(--na-line-2);
    border-radius: 10px;
    transition: border-color .15s ease, background-color .15s ease;
}
.na-seg__name { font-size: 13px; font-weight: 700; color: var(--na-ink); line-height: 1.25; }
.na-seg__fee { font-size: 12.5px; font-weight: 600; color: var(--na-muted); }
.na-seg__item:hover .na-seg__box { border-color: var(--na-primary-line); }
.na-seg__input:checked + .na-seg__box { border-color: var(--na-primary); background: var(--na-primary-soft); }
.na-seg__input:checked + .na-seg__box .na-seg__fee { color: var(--na-primary); }
.na-seg__input:focus-visible + .na-seg__box { box-shadow: var(--na-ring); border-color: var(--na-primary); }
.na-seg__sum { margin: 8px 0 0; font-size: 13px; color: var(--na-muted); line-height: 1.45; }
.na-seg__sum strong { color: var(--na-ink); font-weight: 700; }
.na-seg__sum--solo { margin: 0 0 14px; padding: 9px 12px; color: var(--na-ink-2); background: var(--na-surface-2); border: 1px solid var(--na-line); border-radius: 10px; }
.na-seg__hint { display: block; margin-top: 1px; font-size: 12.5px; }
.na-seg__hint:empty { display: none; }

/* --------------------------------------------------- optional business details */
.na-more { margin-top: 14px; }
.na-more__sum {
    display: flex; align-items: center; gap: 9px;
    padding: 0 12px; min-height: 42px;
    font-size: 13.5px; font-weight: 600; color: var(--na-primary);
    background: var(--na-surface-2);
    border: 1px solid var(--na-line);
    border-radius: 10px;
    cursor: pointer; list-style: none; user-select: none;
}
.na-more__sum::-webkit-details-marker { display: none; }
.na-more__sum em { font-style: normal; font-weight: 500; color: var(--na-muted); }
.na-more__sum:hover { border-color: var(--na-primary-line); }
.na-more__sum:focus-visible { outline: none; box-shadow: var(--na-ring); border-color: var(--na-primary); }
.na-more__chev { margin-left: auto; font-size: 12px; color: var(--na-muted); transition: transform .15s ease; }
.na-more[open] .na-more__chev { transform: rotate(180deg); }
.na-more__body { padding-top: 14px; }

/* ============================================================= tablet + mobile */
@media (max-width: 991.98px) {
    .na { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .na-brand {
        padding: 10px 16px;
        border-right: 0; border-bottom: 1px solid var(--na-side-line);
        background-image: none;
    }
    .na-brand__bar { min-height: 44px; }
    .na-logo { min-height: 44px; }
    .na-logo__mark { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
    .na-logo__name { font-size: 17px; }
    .na-pitch, .na-brand__foot { display: none; }
    .na-brand__hdrlink {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 44px; padding: 0 16px;
        font-size: 14px; font-weight: 700; color: #fff;
        background: rgba(255,255,255,.10);
        border-radius: 10px;
    }
    .na-brand__hdrlink:hover { background: rgba(255,255,255,.18); color: #fff; }
    .na-main { align-items: flex-start; padding: 20px 16px 28px; }
    .na-card { max-width: 560px; }
}
@media (max-width: 575.98px) {
    .na-main { padding: 14px 12px 24px; }
    .na-card { padding: 20px 16px 18px; border-radius: 14px; }
    .na-card__title { font-size: 22px; }
    .na-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .na-input { height: 44px; font-size: 16px; }   /* 16px stops iOS zoom-on-focus */
    .na-btn { height: 48px; }
    .na-more__sum { min-height: 44px; }
    .na-seg__box { min-height: 58px; padding: 7px 4px; }
    .na-seg__name { font-size: 12.5px; }
    .na-ig__pre { padding: 0 10px; }
    .na-card__foot .na-link { display: inline-block; padding: 12px 4px; }   /* 44px touch target */
}

@media (prefers-reduced-motion: reduce) {
    .na-input, .na-btn, .na-seg__box, .na-more__chev { transition: none; }
}
