/* ============================================
   BirteWork Login – SparkFlow Pro Dark Theme
   Glassmorphism | Dark Mode First
   ============================================ */

:root {
    --bg-primary:       #0a0c10;
    --bg-secondary:     #11141c;
    --bg-glass:         rgba(18, 22, 32, 0.70);
    --bg-glass-strong:  rgba(12, 15, 25, 0.90);
    --bg-input:         rgba(255, 255, 255, 0.05);
    --bg-input-focus:   rgba(255, 255, 255, 0.08);

    --accent-blue:      #2d7aff;
    --accent-blue-glow: rgba(45, 122, 255, 0.4);
    --accent-amber:     #ffb347;
    --accent-cyan:      #00d4ff;

    --border-subtle:    rgba(45, 122, 255, 0.15);
    --border-focus:     rgba(45, 122, 255, 0.6);

    --text-primary:     #ffffff;
    --text-secondary:   rgba(255, 255, 255, 0.65);
    --text-muted:       rgba(255, 255, 255, 0.35);

    --success:  #10b981;
    --danger:   #ef4444;
    --info:     #00d4ff;
    --warning:  #ffb347;

    --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(45, 122, 255, 0.08);
    --shadow-glow: 0 0 30px rgba(45, 122, 255, 0.25);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Particle canvas (login-effects.js) ─────────────────── */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Login Wrapper ──────────────────────────────────────── */
.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0a0c10 0%, #0f1625 50%, #0a0c10 100%);
}

/* ── Brand ──────────────────────────────────────────────── */
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease both;
}

.brand-link {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-sub {
    margin-top: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Card (loginCard – 3D tilt target) ──────────────────── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow var(--transition);
    animation: fadeUp 0.6s ease 0.1s both;
}

.login-card:hover {
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border-color: rgba(45, 122, 255, 0.3);
}

/* ── Info Panel (bal oldal) ─────────────────────────────── */
.login-info {
    flex: 0 0 42%;
    padding: 3rem 2.5rem;
    background: linear-gradient(160deg, rgba(45, 122, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(45, 122, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.info-content { position: relative; z-index: 1; }

.info-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 1.25rem;
}

.login-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.login-info > .info-content > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.info-list {
    list-style: none;
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.info-list li i {
    color: var(--accent-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-quote {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.quote-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quote-icon i { color: white; font-size: 1rem; }

.info-quote p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.2rem;
}

.info-quote small { color: var(--text-muted); font-size: 0.8rem; }

/* ── Form Panel (jobb oldal) ────────────────────────────── */
.login-form-panel {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ── Alertek ────────────────────────────────────────────── */
.lw-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    position: relative;
    animation: fadeUp 0.3s ease;
}

.lw-alert-danger  { background: rgba(239, 68, 68, 0.12);  border-left: 3px solid var(--danger);  color: #fca5a5; }
.lw-alert-success { background: rgba(16, 185, 129, 0.12); border-left: 3px solid var(--success); color: #6ee7b7; }
.lw-alert-info    { background: rgba(0, 212, 255, 0.10);  border-left: 3px solid var(--info);    color: #7dd3fc; }

.lw-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 2px 4px;
    transition: opacity var(--transition);
}
.lw-alert-close:hover { opacity: 1; }

/* ── Form mezők ─────────────────────────────────────────── */
.lw-field { margin-bottom: 1.25rem; }

.lw-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lw-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lw-label-row .lw-label { margin-bottom: 0; }

.lw-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.lw-input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.18);
    background: var(--bg-input-focus);
}

.lw-input-icon {
    padding: 0 0.9rem;
    color: var(--accent-blue);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.lw-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 0.75rem 0.8rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font);
}

.lw-input::placeholder { color: var(--text-muted); }

.lw-toggle-pw {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 0.9rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition);
    flex-shrink: 0;
}
.lw-toggle-pw:hover { color: var(--accent-blue); }

/* ── Linkek ─────────────────────────────────────────────── */
.lw-link-small {
    font-size: 0.82rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition);
}
.lw-link-small:hover { color: var(--accent-cyan); text-decoration: underline; }

/* ── Bejelentkezés gomb ──────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), #1a5cce);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 4px 20px rgba(45, 122, 255, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 122, 255, 0.5);
    filter: brightness(1.08);
}

.btn-login:active { transform: translateY(0); }

/* ── Regisztráció ──────────────────────────────────────── */
.register-row {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.register-row p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}

.btn-register {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(45, 122, 255, 0.4);
    border-radius: 40px;
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-register:hover {
    background: var(--accent-blue);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(45, 122, 255, 0.35);
}

/* ── Footer ──────────────────────────────────────────────── */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: fadeUp 0.6s ease 0.2s both;
}

.lw-link-footer {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    margin: 0 0.25rem;
    transition: color var(--transition);
}
.lw-link-footer:hover { color: white; }

.sep { margin: 0 0.35rem; opacity: 0.4; }

/* ── Modálok (sötét téma) ──────────────────────────────── */
.lw-modal {
    background: #141820;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lw-modal-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
}

.lw-modal .modal-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.lw-modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

.lw-modal-body p { margin-bottom: 1rem; font-size: 0.92rem; }

.lw-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.lw-info-box {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #7dd3fc;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.btn-primary-lw {
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-blue), #1a5cce);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.btn-primary-lw:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-secondary-lw {
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.btn-secondary-lw:hover { background: rgba(255, 255, 255, 0.12); color: white; }

/* Bootstrap modal backdrop sötétítés */
.modal-backdrop { background-color: rgba(0, 0, 0, 0.75) !important; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container { z-index: 1200; }

/* ── Animációk ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .login-card { flex-direction: column; }
    .login-form-panel { padding: 2rem 1.75rem; }
}

@media (max-width: 576px) {
    .login-wrapper { padding: 1.25rem 0.75rem; }
    .brand-link { font-size: 1.6rem; }
    .login-card { border-radius: var(--radius-lg); }
    .login-form-panel { padding: 1.75rem 1.25rem; }
    .form-header h2 { font-size: 1.45rem; }
}

@media (max-width: 400px) {
    .login-form-panel { padding: 1.25rem 1rem; }
}

/* ── Accessibility ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.lw-input:focus-visible,
.btn-login:focus-visible,
.btn-register:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(45, 122, 255, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
