/* ==========================================================================
   FÁJL: stilus/maxiauto_login.css
   CÉL: MaxiAutó CRM Belépő oldal stílusa (Világos, modern, üveghatású)
   ========================================================================== */

:root {
    --primary-blue: #3b82f6;     /* Vállalati kék */
    --focus-orange: #f97316;     /* Aktív narancs fókusznál */
    --dark-slate: #1e293b;       /* Menüből ismert antracit */
    --bg-color: #f4f7f6;         /* Világos háttérszín */
    --card-bg: #ffffff;          /* Fehér kártya */
    --text-dark: #334155;        /* Sötétszürke szöveg */
    --input-border: #cbd5e1;     /* Világos keret */
}

/* --- ALAPOK ÉS HÁTTÉR --- */
body {
    margin: 0; padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--bg-color);
    overflow: hidden; /* Animációk miatt */
}

.fullscreen-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

.fullscreen-bg img {
    width: 100%; height: 100%; object-fit: cover; transform: scale(1.05);
    filter: brightness(0.9); /* Picit sötétítjük a világos képet a kontrasztért */
}

.wrapper {
    position: relative; z-index: 1; min-height: 100vh;
    display: flex; justify-content: center; align-items: center;
}

/* Áttetsző "terítő" a kártya alatt */
.wrapper::before {
    content: ""; position: absolute; top: 0; bottom: 0;
    width: 860px; background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(10px); /* Modern üveghatás a háttérre */
    z-index: 1; left: 50%; transform: translateX(-50%); pointer-events: none;
}

/* --- FŐ LOGIN KÁRTYA ÉS ÜVEGHATÁS --- */
.login-container {
    position: relative; z-index: 10; display: flex;
    width: 900px; min-height: 500px;
    background: var(--card-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px; /* Kisebb kerekítés, mint a belső kártyáknál */
    border-left: 5px solid transparent; /* Hely a narancs fókusznak */
    opacity: 0; transform: translateY(30px);
    animation: cardFadeIn 0.8s ease-out forwards 1.2s;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* A BELSŐ RENDSZERBŐL ÁTEMELT VARÁZSLAT: Fókusz narancs csík */
.wrapper:has(.login-container:focus-within) .login-container {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-left-color: var(--focus-orange) !important;
}

/* --- BELSŐ ELRENDEZÉS --- */
.info-side {
    flex: 1; padding: 50px; display: flex; flex-direction: column;
    justify-content: center; border-right: 1px solid #f1f5f9;
}

.info-side .logo { width: 180px; margin-bottom: 25px; }
.sub-text { font-size: 15px; line-height: 1.6; color: var(--text-dark); }

.form-side {
    flex: 1.2; padding: 50px; display: flex; flex-direction: column; justify-content: center;
}

.form-side h1 {
    font-weight: 500; font-size: 28px; color: var(--dark-slate); margin-bottom: 30px;
}

/* --- MEZŐK ÉS GOMBOK --- */
.input-wrapper { position: relative; margin-bottom: 25px; }

.input-label {
    background: #fff; padding: 0 5px; font-size: 12px; font-weight: 500;
    color: #64748b; position: absolute; top: -9px; left: 12px; z-index: 2;
}

.input-wrapper input {
    width: 100%; padding: 14px; border: 1px solid var(--input-border);
    border-radius: 8px; font-size: 15px; outline: none; transition: 0.3s;
    color: var(--text-dark);
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background: var(--primary-blue) !important; color: #fff !important;
    padding: 14px 35px; border: none; border-radius: 8px; font-size: 15px;
    cursor: pointer; font-weight: 600; transition: 0.3s;
}

.btn-primary:hover {
    background: #2563eb !important; /* Sötétebb kék hover */
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

a.link-text, .accent-link { color: var(--primary-blue) !important; text-decoration: none; font-weight: 500; }
a.link-text:hover { text-decoration: underline; }

/* --- LÁBLÉC HARMONIKA --- */
.footer-accordion {
    position: absolute; bottom: 0; left: 20px; right: 20px;
    background: #f8fafc; z-index: -1; border: 1px solid #e2e8f0;
    border-top: none; border-radius: 0 0 12px 12px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s; opacity: 0;
}
.login-container:hover .footer-accordion { transform: translateY(100%); opacity: 1; }
.accordion-content { padding: 15px; text-align: center; font-size: 12px; color: #64748b; }

/* --- SZÍNHÁZI ELEMEK (Kék/Antracit) --- */
.curtain {
    position: fixed; top: 0; width: 51%; height: 100%; z-index: 1000; pointer-events: none;
    background: var(--dark-slate); 
}
/* Kék csík eltávolítva: */
.curtain.left { left: 0; animation: openLeft 1s forwards 0.8s; }
.curtain.right { right: 0; animation: openRight 1s forwards 0.8s; }

/* Animációk */
@keyframes cardFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes openLeft { to { transform: translateX(-100%); } }
@keyframes openRight { to { transform: translateX(100%); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* Mobil nézet */
@media (max-width: 768px) {
    .fullscreen-bg, .wrapper::before, .curtain, .intro-logo-container { display: none !important; } 
    .wrapper { background: var(--bg-color); align-items: flex-start; padding-top: 40px; } 
    .login-container { width: 90%; flex-direction: column; opacity: 1; transform: none; animation: none; border-left: none; } 
    .info-side { padding: 20px; border-right: none; align-items: center; text-align: center; } 
    .sub-text { display: none; } 
    .form-side { padding: 30px 20px; } 
    .footer-accordion { position: relative; left: 0; right: 0; opacity: 1; transform: none; border: none; background: transparent; } 
}