/* =========================================
   LOGIN PAGE & PUBLIC ELEMENTS (HERO, FAQ)
   ========================================= */

/* Ez a csomagoló tartja egyben és rendezi egymás alá a Hero-t és a FAQ-ot */
.login-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 120px);
}  

/* Publikus menü a Topbar-ban (kijelentkezett állapot) */
.public-nav {
    margin-left: auto;
    padding-right: 20px;
    display: flex;
    gap: 20px;
}
.public-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}
.public-nav a:hover {
    color: #00d2ff;
}

/* Hero Szekció (Két oszlop) */
.login-hero {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    margin: 60px auto 30px auto;
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}
.hero-left {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}
.hero-right {
    flex: 1;
    min-width: 300px;
}

/* Feature Lista */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.feature-icon {
    font-size: 24px;
    margin-right: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
}
.feature-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #f8fafc;
}
.feature-text p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Login Box (Űrlap) */
.login-box {
    background: #0f1e35;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.login-box h2 { margin-top: 0; font-size: 24px; color: #fff;}
.login-box p { color: #94a3b8; font-size: 14px; margin-bottom: 25px; }

.login-input {
    width: 100%;
    padding: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.login-input:focus {
    outline: none;
    border-color: #00d2ff;
}
.btn-login {
    width: 300px;          /* Hajszálpontosan a Captcha alapmérete */
    max-width: 100%;       /* Biztonsági korlát pici kijelzőkhöz */
    padding: 12px;         /* 14px-ről 12px-re csökkentve: kevésbé "bumfordi" */
    margin: 20px auto 0 auto; /* Középre igazítás és távolság a Captchától */
    display: block;        /* Hogy a margin:auto működjön */
    
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-login:hover {
    transform: translateY(-2px);
}

.cf-turnstile {
    display: flex !important;
    justify-content: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Szekció */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}
.faq-section h2 {
    text-align: center;
    color: #00d2ff;
    margin-bottom: 30px;
}
.faq-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
    color: #fff;
}
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    padding: 15px 20px 20px 20px;
    max-height: 300px;
}
.faq-toggle { font-size: 18px; color: #00d2ff; transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

.text-danger { color: #ef4444; font-weight: bold; }




/* ===================================================
   FIREFOX ÉS HORIZONTÁLIS TÚLLÓGÁS JAVÍTÁSA-- Mobil
   =================================================== */

/* 1. Megtiltjuk a jobbra-balra csúszást a teljes oldalon */
body, html {
    overflow-x: hidden;
}

.login-page-wrapper {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {

    /* 1. Elrejtjük a felső menü linkjeit, hogy ne folyjanak egybe és ne vágja le őket */
    .public-nav {
        display: none !important;
    }
    
    /* 2. Biztosítjuk, hogy a FaucetJoy logó felirata kényelmesen elférjen */
    .topbar-left h1 { /* Vagy amilyen class/tag a FaucetJoy feliratod */
        font-size: 20px !important; 
        white-space: nowrap;
    }
    
    .login-hero {
        margin-top: 20px;
        gap: 30px;
        padding: 0 15px; /* Kicsit kisebb külső margó mobilon */
    }
    
    /* A 300px helyett vegyék fel a teljes 100%-ot mobilon */
    .hero-left, .hero-right {
        min-width: 100% !important; 
        flex: 0 0 100%;
    }

    /* Kisebb padding, hogy a Cloudflare Captcha biztosan elférjen a Firefoxban is */
    .login-box {
        padding: 25px 15px !important; 
        width: 100%;
        box-sizing: border-box;
    }
    
    /* A nagyon hosszú FaucetJoy cím is okozhat túllógást, kicsinyítjük */
    .hero-left h1 {
        font-size: 32px !important; 
    }
}


