@charset "UTF-8";


/* --- ALAPOK ÉSrgb(255, 0, 0) --- */
body.login-page {
    background: #f0f2f5;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* A kártya mögé kerül */
    background-color: #f8fafc; /* Alapszín */
}


/* --- FŐ KÁRTYA (CONTAINER) --- */
.login-card {
    background: white;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    border: 1px solid #d1d5db;
    /*border-top: 5px solid var(--brand-color);  Timsoft Blue Header #1e40af */
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--brand-color), var(--brand-color-light)) 1;
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.login-header h1 {
    color: var(--brand-color);
    font-size: 1.6rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* --- KÉT GOMBOS VÁLASZTÓ (CHOICE CONTAINER) --- */
.login-choice-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-top: 10px;
}

.choice-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 30px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 0; /* SZÖGLETES */
}

.choice-card:hover {
    background: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.choice-card .icon-wrapper svg {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    color: var(--brand-color);
}

.choice-title {
    font-size: 1rem;
    font-weight: bold;
    color: #1e293b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.choice-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

/* --- FORM ÉS INPUTOK --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 0; /* SZÖGLETES */
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #1e40af;
    background-color: #f8fafc;
}

/* --- GOMBOK --- */
.btn {
    width: 100%;
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0; /* SZÖGLETES */
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--brand-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-color-light);
}

.btn-link {
    background: none;
    color:  var(--brand-color);
    text-decoration: underline;
    font-size: 13px;
    margin-top: 15px;
    cursor: pointer;
}

/* --- HIBAÜZENETEK ÉS ÁLLAPOTOK --- */
#login-error:not(:empty) {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.pulse-text {
    animation: pulse 1.5s infinite;
    color: #1e40af;
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- MOBIL NÉZET --- */
@media (max-width: 480px) {
    .login-card { padding: 25px; }
    .login-choice-container { flex-direction: column; }
    .choice-card { width: 100%; padding: 20px; }
}

/* --- HÁLÓZATI SÁV (PWA) --- */
.connection-banner {
    position: fixed;
    top: 0; width: 100%;
    background: #ef4444; color: white;
    text-align: center; padding: 5px;
    font-size: 12px; display: none;
    z-index: 1000;
}

.lang-switcher {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.lang-switcher a {
    text-decoration: none;
    color: #94a3b8; /* Halvány szürke */
    transition: color 0.2s;
    padding: 5px;
}

.lang-switcher a:hover {
    color: #1e40af; /* Timsoft kék hoverre */
}

.lang-switcher a.active {
    color: #1e40af; /* Aktív nyelv színe */
    border-bottom: 2px solid #1e40af; /* Szolid aláhúzás az aktívnak */
}

.lang-switcher .separator {
    color: #e2e8f0;
    margin: 0 5px;
}

/* --- LOGIN FOOTER --- */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: auto;
    font-size: 11px;
    color: #94a3b8; /* Finom pala-szürke */
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 10; /* A háló felett, de a kártya alatt */
}

.login-footer a {
    /* 1. Ugyanazt a színt kapja, mint a többi szöveg */
    color: inherit; 
    
    /* 2. Eltüntetjük az alapértelmezett aláhúzást */
    text-decoration: none;
    
    /* 3. Biztosítjuk, hogy a betűméret és típus megegyezzen */
    font-size: 11px;
    font-weight: 500;
}

.login-footer a:hover {
    /* 4. Csak akkor legyen kék és aláhúzott, ha ráviszed az egeret */
    color: #1e40af; 
    text-decoration: underline;
}

.login-footer .separator {
    color: #cbd5e1;
    margin: 0 8px;
    user-select: none;
}

/* Mobilon kicsit feljebb húzzuk, ha kell */
@media (max-height: 600px) {
    .login-footer {
        position: relative;
        margin-top: 30px;
        padding-bottom: 20px;
    }
}

#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1; 
    pointer-events: none; opacity: 0.3;
}

/* Amikor fut a hívás: a háló minden felett (Progress Icon mód) */
#particle-canvas.foreground-progress {
    z-index: 9999 !important;
    opacity: 0.3;
}

.login-card {
	 z-index: 10 !important;
 	opacity: 1;
}

/* Hívás alatt a kártya elhalványul, hogy a gömb legyen a fókuszban */
.htmx-request.login-card {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none; /* Ne lehessen kattintani töltés alatt */
}
/* Ez az osztály HTMX-nél és Manuális hívásnál is működik */
.login-card.is-loading {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.particle-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif; /* Vagy amit használsz */
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.3rem;
    color: var(--brand-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

/* Amikor aktív az animáció */
.loading-overlay.visible {
    opacity: 1;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -65%); } /* Enyhe emelkedés */
}
