:root {
    /* Ugyanaz a színvilág, mint az index.html és rules.html esetén */
    --accent: #0095D8;
    --accent-dark: #0078b0;
    --accent-light: rgba(0, 149, 216, 0.08);
    --accent-glow: rgba(0, 149, 216, 0.18);
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.08);
    --danger: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.18);
    --border-solid: #e2e8f0;
    --card-bg: rgba(255,255,255,0.85);
    --card-shadow: 0 4px 32px rgba(15,23,42,0.07), 0 1px 4px rgba(15,23,42,0.04);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Átlátszó, hogy látszódjon a videó */
    color: var(--text-primary);
    overflow: hidden;
}

/* ── VIDEÓ HÁTTÉR CSS ── */
#bg-video-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #fff;
}
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(0.8);
    transform-origin: center center;
    opacity: 1;
    transition: opacity 1.2s ease;
}
#bg-overlay {
    position: absolute;
    inset: 0;
    background: rgb(209 208 208 / 18%);
}

/* ── BEJELENTKEZŐ ABLAK TÁROLÓJA (A videó felett) ── */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.glass-card {
    border: 1.5px solid var(--border-solid);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.28s ease;
}

/* ── LOGÓ RÉSZLEG ── */
.logo-area {
    text-align: center;
    margin-bottom: 32px;
}
.logo-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-primary); 
    letter-spacing: -0.02em; 
    margin-bottom: 4px;
}
.logo-title span { color: var(--accent); }
.logo-subtitle { 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    font-weight: 600; 
    white-space: nowrap; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── FORM ELEMEK ── */
.form-group { 
    margin-bottom: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.form-group label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border-solid);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ── GOMB ── */
.btn-primary {
    width: 100%;
    padding: 14px;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #4AFB86 0%, #a4a1a1 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0,149,216,0.3);
    margin-top: 12px;
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,149,216,0.45); 
}
.btn-primary:active { 
    transform: translateY(0); 
}

/* ── ÜZENETEK (Flash messages) ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
/* Bootstrap classok felülírása a saját színekre */
.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.alert-warning {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.alert-info {
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid rgba(0, 149, 216, 0.2);
}
