/* ==========================================================================
   Auth oldalak (bejelentkezés, regisztráció, jelszó-visszaállítás)
   Meleg semleges alapskála + narancs accent.
   ========================================================================== */

:root {
    /* Accent */
    --accent:        #fe4f00;
    --accent-soft:   #fd6d2b;
    --accent-ring:   rgba(254, 79, 0, 0.14);

    /* Meleg semleges skála — szándékosan nem hideg szürke,
       hogy a narancs ne idegen testként üljön a felületen. */
    --ink:           #1c1917;
    --ink-soft:      #44403c;
    --muted:         #79716b;
    --line:          #e7e5e4;
    --field:         #fafaf9;
    --surface:       #ffffff;

    /* Állapotszínek */
    --ok:            #15803d;
    --ok-bg:         #f0fdf4;
    --ok-line:       #bbf7d0;
    --err:           #b91c1c;
    --err-bg:        #fef2f2;
    --err-line:      #fecaca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1c1917;
    /* Finom narancs derengés — a kártya mögül "világít" ki. */
    background-image:
        radial-gradient(ellipse 80% 55% at 50% 0%,   rgba(254, 79, 0, 0.20), transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 100%, rgba(253, 109, 43, 0.10), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    width: 100%;
    max-width: 430px;
}

.auth-card {
    position: relative;
    background: var(--surface);
    border-radius: 18px;
    padding: 44px 40px 36px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(28, 25, 23, 0.10),
        0 12px 32px rgba(28, 25, 23, 0.16),
        0 32px 64px rgba(28, 25, 23, 0.12);
}

/* Signature: narancs csík a kártya tetején. */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.auth-card h1 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 8px;
    text-align: center;
}

.text-muted {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.55;
}

.auth-card h1 + form,
.auth-card h1 + .alert {
    margin-top: 28px;
}

/* ===== Üzenetek ===== */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert li + li {
    margin-top: 5px;
}

.alert-success {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-line);
}

.alert-error {
    background: var(--err-bg);
    color: var(--err);
    border: 1px solid var(--err-line);
}

/* ===== Űrlapmezők ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.form-group input::placeholder {
    color: #a8a29e;
}

/* Fókuszban a mező "kinyílik": fehérre vált és narancs gyűrűt kap. */
.form-group input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
}

.form-group-checkbox {
    margin: 4px 0 22px;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-soft);
    user-select: none;
}

.form-group-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-right: 9px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===== Gombok ===== */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(254, 79, 0, 0.30), 0 4px 14px rgba(254, 79, 0, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(254, 79, 0, 0.32), 0 8px 22px rgba(254, 79, 0, 0.34);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(254, 79, 0, 0.30);
}

.btn-secondary {
    background: var(--field);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #f5f5f4;
}

/* Látható billentyűzet-fókusz mindenhol. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Alsó linksáv: két egyenlő oszlop ===== */
.auth-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    margin: 26px -40px -36px;
    border-top: 1px solid var(--line);
    background: var(--field);
}

.auth-links a {
    padding: 15px 12px;
    text-align: center;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color .18s ease, background .18s ease;
}

/* Hajszálvékony elválasztó a két oszlop között. */
.auth-links a + a {
    border-left: 1px solid var(--line);
}

.auth-links a:hover {
    color: var(--accent);
    background: #ffffff;
}

/* ===== Elválasztó ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ===== Honeypot ===== */
.website-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== Jelszóerősség ===== */
.password-strength {
    margin-top: 12px;
    padding: 15px;
    background: var(--field);
    border-radius: 10px;
    border: 1px solid var(--line);
}

.strength-bar {
    height: 5px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 13px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .3s ease, background .3s ease;
}

.strength-requirements {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    transition: color .2s ease;
}

.requirement.met {
    color: var(--ok);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 9px;
    font-weight: 700;
    font-size: 11px;
}

.requirement.met .check-icon {
    color: var(--ok);
}

.requirement:not(.met) .check-icon {
    color: #d6d3d1;
}

/* ===== Mobil ===== */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .auth-card {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 24px;
    }

    .auth-links {
        margin: 24px -24px -28px;
    }
}

/* ===== Mozgáscsökkentés ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}