/* ============================================================
 * Fejléc auth (Bejelentkezés / Regisztráció / Profilom)
 * ============================================================ */

.site-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.site-auth__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-auth__btn--login {
    background: #fff;
    color: #00893d;
    border-color: #00893d;
}

.site-auth__btn--login:hover,
.site-auth__btn--login:focus-visible {
    background: #00893d;
    color: #fff;
}

.site-auth__btn--register {
    background: #00893d;
    color: #fff;
}

.site-auth__btn--register:hover,
.site-auth__btn--register:focus-visible {
    background: #006e30;
    color: #fff;
}

.site-auth__btn--profile {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #e5e7eb;
}

.site-auth__btn--profile:hover,
.site-auth__btn--profile:focus-visible {
    background: #e5e7eb;
}

/* A header .container-t flexbe rakjuk, hogy a site-auth jobbra essen */
.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-header .main-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================================
 * Login modal
 * ============================================================ */

.zf-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zf-auth-modal[hidden] { display: none !important; }

.zf-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.zf-auth-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.zf-auth-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.zf-auth-modal__close:hover { background: #f3f4f6; color: #1f2937; }

.zf-auth-modal__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    color: #1f2937;
}

.zf-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zf-auth-form__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #374151;
}

.zf-auth-form__label > span {
    font-weight: 600;
}

.zf-auth-form__label input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    min-height: 42px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zf-auth-form__label input:focus {
    border-color: #00893d;
    box-shadow: 0 0 0 4px rgba(0, 137, 61, 0.15);
}

.zf-auth-form__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #4b5563;
    cursor: pointer;
}

.zf-auth-form__error {
    margin: 4px 0 0;
    padding: 8px 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.88rem;
}

.zf-auth-form__hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.zf-auth-form__hint a {
    color: #00893d;
    font-weight: 600;
    text-decoration: none;
}

.zf-auth-form__hint a:hover {
    text-decoration: underline;
}

.zf-auth-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.zf-auth-btn--primary {
    background: #00893d;
    color: #fff;
}

.zf-auth-btn--primary:hover:not([disabled]) {
    background: #006e30;
}

.zf-auth-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* Body scroll lock amíg a modal nyitva van */
body.zf-auth-modal-open {
    overflow: hidden;
}

/* ============================================================
 * Regisztrációs oldal
 * ============================================================ */

.zf-register {
    max-width: 640px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.zf-register__title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    color: #1f2937;
}

.zf-register__intro {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 0.95rem;
}

.zf-register__notice {
    margin: 0;
    color: #4b5563;
}

.zf-register__notice a {
    color: #00893d;
    font-weight: 600;
}

.zf-register-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.zf-register-form__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #374151;
}

.zf-register-form__label > span {
    font-weight: 600;
}

.zf-register-form__label > span small {
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}

.zf-register-form__label input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    min-height: 42px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zf-register-form__label input:focus {
    border-color: #00893d;
    box-shadow: 0 0 0 4px rgba(0, 137, 61, 0.15);
}

.zf-register-form__label--wide {
    grid-column: 1 / -1;
}

.zf-register-form__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.zf-register-form__error {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.92rem;
}

.zf-register-form__error a {
    color: #991b1b;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 6px;
}

.zf-register-form__success {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.92rem;
}

.zf-register-form__hint {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: #6b7280;
}

.zf-register-form__hint a {
    color: #00893d;
    font-weight: 600;
    text-decoration: none;
}

.zf-register-form__hint a:hover { text-decoration: underline; }

@media (max-width: 540px) {
    .zf-register-form__grid {
        grid-template-columns: 1fr;
    }
    .zf-auth-modal__dialog {
        padding: 22px 18px 18px;
    }
    .site-auth { gap: 6px; }
    .site-auth__btn { padding: 7px 10px; font-size: 0.86rem; }
}
