/* Note AI — Auth Wall Styles (1.4.1) */

.na-auth-wall {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    color: #e0e0e0;
    font-family: inherit;
}

.na-auth-wall__heading {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.na-auth-wall__tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 1.5rem;
}

.na-auth-wall__tab {
    flex: 1;
    padding: .625rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.na-auth-wall__tab:hover {
    color: #fff;
}

.na-auth-wall__tab--active,
.na-auth-wall__tab[aria-selected="true"] {
    color: #7c6af5;
    border-bottom-color: #7c6af5;
    font-weight: 600;
}

/* ── Panels ────────────────────────────────────────────────────────────── */
.na-auth-wall__panel {
    display: none;
}

.na-auth-wall__panel--active {
    display: block;
}

.na-auth-wall__intro {
    margin: 0 0 1rem;
    font-size: .875rem;
    color: rgba(255,255,255,.6);
}

/* ── Form elements ─────────────────────────────────────────────────────── */
.na-auth-wall__form {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.na-auth-wall__label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .875rem;
    color: rgba(255,255,255,.75);
}

.na-auth-wall__input {
    padding: .6rem .875rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    color: #fff;
    font-size: .9rem;
    transition: border-color .15s, background .15s;
}

.na-auth-wall__input:focus {
    outline: none;
    background: rgba(255,255,255,.09);
    border-color: #7c6af5;
}

.na-auth-wall__error {
    padding: .5rem .875rem;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 6px;
    color: #fca5a5;
    font-size: .85rem;
}

.na-auth-wall__submit {
    padding: .7rem 1rem;
    background: #7c6af5;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    margin-top: .25rem;
}

.na-auth-wall__submit:hover {
    background: #6b59e8;
}

.na-auth-wall__submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Forgot password link ──────────────────────────────────────────────── */
.na-auth-wall__forgot {
    display: block;
    text-align: right;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    margin-top: -.25rem;
    transition: color .15s;
}

.na-auth-wall__forgot:hover {
    color: #7c6af5;
}

/* ── Remember me row ───────────────────────────────────────────────────── */
.na-auth-wall__remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    user-select: none;
}

.na-auth-wall__remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #7c6af5;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Password confirm ──────────────────────────────────────────────────── */
.na-auth-wall__pw-mismatch {
    font-size: .8rem;
    color: #fca5a5;
    margin-top: -.35rem;
    display: none;
}

.na-auth-wall__pw-mismatch.na-visible {
    display: block;
}

/* ── Success / info notices ────────────────────────────────────────────── */
.na-notice {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.5;
    margin: .5rem 0;
}

.na-notice--success {
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.35);
    color: #86efac;
}

.na-notice--info {
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.35);
    color: #a5b4fc;
}

/* ── Light-theme overrides ─────────────────────────────────────────────── */
.na-light .na-auth-wall {
    background: #ffffff;
    border-color: rgba(0,0,0,.1);
    color: #1f2937;
}

.na-light .na-auth-wall__heading {
    color: #111827;
}

.na-light .na-auth-wall__tabs {
    border-bottom-color: rgba(0,0,0,.1);
}

.na-light .na-auth-wall__tab {
    color: rgba(0,0,0,.45);
}

.na-light .na-auth-wall__tab:hover {
    color: #111827;
}

.na-light .na-auth-wall__tab--active,
.na-light .na-auth-wall__tab[aria-selected="true"] {
    color: #5b4be0;
    border-bottom-color: #5b4be0;
}

.na-light .na-auth-wall__label {
    color: rgba(0,0,0,.7);
}

.na-light .na-auth-wall__input {
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.15);
    color: #111827;
}

.na-light .na-auth-wall__input:focus {
    background: rgba(0,0,0,.06);
    border-color: #5b4be0;
}

.na-light .na-auth-wall__intro {
    color: rgba(0,0,0,.55);
}

.na-light .na-auth-wall__forgot {
    color: rgba(0,0,0,.4);
}

.na-light .na-auth-wall__forgot:hover {
    color: #5b4be0;
}

.na-light .na-auth-wall__remember {
    color: rgba(0,0,0,.55);
}

.na-light .na-auth-wall__submit {
    background: #5b4be0;
}

.na-light .na-auth-wall__submit:hover {
    background: #4a3bd0;
}

.na-light .na-notice--success {
    background: rgba(22,163,74,.12);
    border-color: rgba(22,163,74,.3);
    color: #15803d;
}

.na-light .na-notice--info {
    background: rgba(79,70,229,.1);
    border-color: rgba(79,70,229,.25);
    color: #4338ca;
}

.na-light .na-auth-wall__pw-mismatch {
    color: #dc2626;
}
