/* ══════════════════════════════════════════
   Nice Order – Auth Widget
   ══════════════════════════════════════════ */
.no-auth {
    --ap: var(--no-primary, #C49444);
    --aph: var(--no-primary-hover, #8B6318);
    --abg: #fff;
    --asurf: #f7f6f3;
    --aborder: rgba(0,0,0,0.09);
    --atext: #1a1a1a;
    --amuted: #717171;
    --aerr: #d0312d;
    --aok: #2e7d32;
    --aradius: 14px;
    font-family: inherit;
    position: relative;
}

/* ══ TRIGGER BOX ══ */
.no-auth-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--abg);
    border: 1.5px solid var(--aborder);
    border-radius: var(--aradius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}
.no-auth-trigger__icon {
    color: var(--ap);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.no-auth-trigger__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--atext);
    flex: 1;
    min-width: 0;
}
.no-auth-trigger__btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ══ PANEL (kinyíló) ══ */
.no-auth-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 380ms cubic-bezier(0.16,1,0.3,1),
                opacity 250ms ease,
                margin-top 250ms ease;
    margin-top: 0;
}
.no-auth-panel > .no-auth-panel__inner {
    overflow: hidden;
    min-height: 0;
}
.no-auth-panel.open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 10px;
}
.no-auth-panel__inner {
    position: relative;
    background: var(--abg);
    border: 1.5px solid var(--aborder);
    border-radius: var(--aradius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 28px 28px 24px;
}
.no-auth-panel__close {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--asurf);
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--amuted);
    transition: background 150ms, color 150ms;
    z-index: 2;
}
.no-auth-panel__close:hover { background: #ebebeb; color: var(--atext); }

/* ══ DESKTOP: 2 OSZLOP ══ */
.no-auth-cols {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 28px;
    align-items: start;
}
.no-auth-divider {
    background: var(--aborder);
    align-self: stretch;
    border-radius: 2px;
}
.no-auth-col__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--atext);
    margin-bottom: 18px;
}

/* ══ MOBIL TABOK ══ */
.no-auth-mobile-tabs {
    display: none;
    background: var(--asurf);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.no-auth-mobile-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--amuted);
    cursor: pointer;
    transition: all 180ms;
}
.no-auth-mobile-tab.active {
    background: var(--abg);
    color: var(--atext);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
    .no-auth-mobile-tabs { display: flex; }
    .no-auth-cols { grid-template-columns: 1fr; }
    .no-auth-divider { display: none; }
    .no-auth-panel__inner { padding: 20px 16px 18px; }

    /* Mobilon a JS show/hide kezeli a col váltást */

    .no-auth-trigger__btns { width: 100%; }
    .no-auth-trigger__btns .no-auth-btn { flex: 1; text-align: center; }
}
@media (min-width: 641px) {
    .no-auth-mobile-tabs { display: none !important; }
}

/* ══ MEZŐ ══ */
.no-auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.no-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .no-auth-row { grid-template-columns: 1fr; } }

.no-auth-label { font-size: 12px; font-weight: 600; color: var(--atext); letter-spacing: .02em; text-transform: uppercase; }
.no-auth-input-wrap { position: relative; display: flex; align-items: center; }
.no-auth-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--aborder);
    border-radius: 9px;
    font-size: 14px;
    background: var(--asurf);
    color: var(--atext);
    outline: none;
    transition: border-color 180ms, box-shadow 180ms, background 180ms;
}
.no-auth-input-wrap .no-auth-input { padding-right: 42px; }
.no-auth-input:focus {
    background: var(--abg);
    border-color: var(--ap);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ap) 14%, transparent);
}
.no-auth-input.is-err { border-color: var(--aerr); box-shadow: 0 0 0 3px rgba(208,49,45,0.1); }
.no-auth-input::placeholder { color: #c0bdb8; }
.no-auth-eye {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--amuted); padding: 4px; display: flex;
    transition: color 150ms;
}
.no-auth-eye:hover { color: var(--atext); }
.no-auth-field__err { font-size: 11.5px; color: var(--aerr); min-height: 15px; }

/* Jelszó erősség */
.no-auth-strength { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.no-auth-strength__bar { flex: 1; height: 3px; background: #e5e5e5; border-radius: 3px; overflow: hidden; }
.no-auth-strength__bar span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 300ms, background 300ms; }
.no-auth-strength__lbl { font-size: 11px; font-weight: 600; min-width: 48px; color: var(--amuted); }

/* Alert */
.no-auth-alert {
    display: none;
    font-size: 13px;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 10px;
}
.no-auth-alert.is-err { background: #fff0f0; color: var(--aerr); border: 1px solid rgba(208,49,45,.13); }
.no-auth-alert.is-ok  { background: #f0fff4; color: var(--aok);  border: 1px solid rgba(46,125,50,.13); }

/* Elfelejtett jelszó */
.no-auth-link { font-size: 12px; color: var(--ap); text-decoration: none; display: block; margin: -4px 0 10px; }
.no-auth-link:hover { text-decoration: underline; }

/* ══ GOMB ══ */
.no-auth-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 160ms, border-color 160ms, transform 80ms;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.no-auth-btn--primary { background: var(--ap); color: #fff; border-color: var(--ap); }
.no-auth-btn--primary:hover { background: var(--aph); border-color: var(--aph); }
.no-auth-btn--outline { background: transparent; color: var(--ap); border-color: var(--ap); }
.no-auth-btn--outline:hover { background: color-mix(in oklab, var(--ap) 8%, transparent); }
.no-auth-btn--ghost { background: transparent; color: var(--amuted); border-color: var(--aborder); }
.no-auth-btn--ghost:hover { background: var(--asurf); }

/* Submit */
.no-auth-submit {
    width: 100%; margin-top: 6px;
    padding: 12px; border: none; border-radius: 10px;
    background: var(--ap); color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 2px 10px color-mix(in oklab, var(--ap) 30%, transparent);
    transition: background 160ms, transform 80ms, box-shadow 160ms;
}
.no-auth-submit:hover { background: var(--aph); box-shadow: 0 4px 18px color-mix(in oklab, var(--ap) 35%, transparent); }
.no-auth-submit:active { transform: scale(0.98); }
.no-auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
@keyframes no-auth-spin { to { transform: rotate(360deg); } }
.no-auth-submit__spin { display: none; }
.no-auth-submit__spin svg { animation: no-auth-spin .8s linear infinite; }

/* ══ BEJELENTKEZETT ══ */
.no-auth--loggedin .no-auth-profile {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--asurf);
    border: 1.5px solid var(--aborder);
    border-radius: var(--aradius);
}
.no-auth-profile__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.no-auth-profile__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.no-auth-profile__name { font-size: 14px; color: var(--atext); }
.no-auth-profile__email { font-size: 12px; color: var(--amuted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-auth-profile__btns { display: flex; gap: 8px; flex-wrap: wrap; }
