/**
 * assets/css/views/auth.css
 * DropX Prime System - Hitelesítés, Bejelentkezés, Regisztráció és Google OAuth
 *
 * Tartalom:
 * 1. Fő Hitelesítési konténer (.auth-container) és Címsorok
 * 2. 2 Oszlopos Grid Elrendezés (.auth-two-column-layout) és súgó táblák
 * 3. Közösségi és Inaktív gombok (.btn-google-auth, .btn-social-disabled)
 * 4. Jelszó mező és jelszó-felfedő kapcsoló (.password-toggle)
 * 5. Megjegyzés és ÁSZF checkboxok (.checkbox-input, .terms-privacy-group)
 * 6. Egyedi legördülő mezők és validációs visszajelzések (.select-input-dark)
 * 7. Tájékoztató és hiba visszajelző panelek (.alert, .error-msg, .success-msg)
 * 8. Űrlapváltók, alsó full-width zóna és tilt letiltások
 */

/* ==========================================================================
   1. FŐ HITELESÍTÉSI KONTÉNER ÉS CÍMSOROK
   ========================================================================== */
.auth-container { 
    max-width: 1000px; /* Megnövelt szélesség a kényelmes, széles olvasási sorokért */
    margin: 40px auto; 
    background: var(--color-glass-card); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    padding: 40px; 
    border-radius: 4px; 
    border-top: 3px solid var(--color-gold); 
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9), 
        inset 0 0 30px rgba(229, 158, 0, 0.05); 
    border: 1px solid var(--color-border-subtle); 
    position: relative; 
} 

body.light-mode .auth-container { 
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1), 
        inset 0 0 30px rgba(179, 107, 0, 0.05); 
}

.auth-container.compact-width {
    max-width: 500px; /* Megtartja a kompakt nézetet az elfelejtett jelszó és visszaállítás esetén */
}

.auth-title {
    text-align: left;
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.auth-title-icon {
    width: 28px;
    height: 28px;
    color: var(--color-gold);
}

/* ==========================================================================
   2. 2 OSZLOPOS GRID ELRENDEZÉS ÉS SÚGÓ TÁBLÁK
   ========================================================================== */
.auth-two-column-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* Ideális, szélesebb űrlaparány */
    gap: 40px;
    align-items: start;
}

.auth-left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Szaggatott szélű cyberpunk súgó doboz */
.auth-guide-box {
    border: 1px dashed var(--color-gold);
    background: rgba(229, 158, 0, 0.03);
    padding: 22px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

body.light-mode .auth-guide-box {
    background: rgba(179, 107, 0, 0.02);
}

.auth-guide-box h4 {
    color: var(--color-gold);
    margin: 0 0 12px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.auth-guide-box h4 svg {
    width: 18px;
    height: 18px;
}

.auth-guide-box p {
    margin: 0 0 12px 0;
}

.auth-guide-box p:last-child {
    margin-bottom: 0;
}

.auth-guide-box ul {
    margin: 0 0 12px 18px;
    padding: 0;
}

.auth-guide-box li {
    margin-bottom: 6px;
    list-style-type: square;
}

.auth-guide-box strong {
    color: var(--text-light);
}

/* ==========================================================================
   3. KÖZÖSSÉGI ÉS INAKTÍV GOMBOK
   ========================================================================== */
.google-auth-container {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Távolság a Google és az inaktív gombok között */
    width: 100%;
}

a.btn-google-auth,
.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

a.btn-google-auth span,
.btn-google-auth span {
    color: #ffffff;
}

body.light-mode a.btn-google-auth,
body.light-mode .btn-google-auth {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #2c2825;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode a.btn-google-auth span,
body.light-mode .btn-google-auth span {
    color: #2c2825;
}

a.btn-google-auth:hover,
.btn-google-auth:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-gold, #e59e00);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(229, 158, 0, 0.4);
    transform: translateY(-2px);
}

body.light-mode a.btn-google-auth:hover,
body.light-mode .btn-google-auth:hover {
    background: #f8f8f8;
    border-color: var(--color-gold, #179, 107, 0);
    box-shadow: 0 4px 15px rgba(179, 107, 0, 0.2);
}

/* Szürke, inaktív cyberpunk gombok */
.btn-social-disabled {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.btn-social-disabled span {
    color: rgba(255, 255, 255, 0.25);
}

body.light-mode .btn-social-disabled {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.35);
}

body.light-mode .btn-social-disabled span {
    color: rgba(0, 0, 0, 0.35);
}

.btn-social-disabled svg {
    width: 20px;
    height: 20px;
    opacity: 0.3;
}

body.light-mode .btn-social-disabled svg {
    opacity: 0.4;
}

/* Hamarosan érkezik badge a gombok végén */
.social-disabled-badge {
    font-size: 0.72rem;
    background: rgba(229, 158, 0, 0.08);
    color: var(--color-gold);
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(229, 158, 0, 0.2);
    text-transform: uppercase;
    font-family: 'Chakra Petch', sans-serif;
    margin-left: auto;
}

body.light-mode .social-disabled-badge {
    background: rgba(179, 107, 0, 0.08);
    color: var(--color-gold);
    border-color: rgba(179, 107, 0, 0.2);
}

.google-svg-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Elválasztó Vonal */
.auth-divider-line {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0 15px 0;
}

.auth-divider-line::before,
.auth-divider-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .auth-divider-line::before,
body.light-mode .auth-divider-line::after {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.auth-divider-line span {
    padding: 0 14px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted, #aba29a);
    text-transform: uppercase;
}

/* ==========================================================================
   4. JELSZÓ MEZŐK ÉS FELFEDŐ GOMB
   ========================================================================== */
.form-group.password-group { 
    position: relative; 
}

.password-toggle { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--color-silver); 
    cursor: pointer; 
    padding: 5px; 
    border-radius: 5px; 
    transition: color 0.3s ease, background 0.3s ease; 
    z-index: 10; 
}

.password-toggle:hover { 
    color: var(--color-gold); 
}

body.light-mode .password-toggle { 
    color: var(--text-muted); 
}

body.light-mode .password-toggle:hover { 
    color: var(--color-gold); 
}

/* ==========================================================================
   5. CHECKBOXOK ÉS SZERZŐDÉSI FELTÉTELEK SZEKCIÓ
   ========================================================================== */
.remember-me-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0 10px 0;
}

.checkbox-label {
    color: var(--text-muted, #aba29a);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0 6px 0;
    user-select: none;
    display: block;
}

.terms-privacy-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 10px 0;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #aba29a);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

a.terms-link,
.terms-link {
    color: var(--color-gold, #e59e00);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a.terms-link:hover,
.terms-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   6. EGYEDI LEGÖRDÜLŐK ÉS VISSZAJELZÉSEK
   ========================================================================== */
.select-input-dark {
    width: 100%;
    padding: 14px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border-subtle);
    color: var(--text-light);
    border-radius: 0;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body.light-mode .select-input-dark {
    background: rgba(248, 245, 240, 0.9);
    color: var(--text-light);
}

.select-input-dark:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.field-feedback {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    min-height: 16px;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. TÁJÉKOZTATÓ ÉS HIBA VISSZAJELZŐ PANELEK (CYBERPANEL DESIGN)
   ========================================================================== */
/* MAGYAR NYELVŰ KOMMENT: Az összes visszajelző alert dobozt áttetsző, izzó és kiemelkedően látható panellé formázzuk */
.alert,
.error-msg,
.error-message,
.success-msg,
.success-message,
.warning-msg {
    padding: 16px 22px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Hiba / Biztonsági riasztás (Félátlátszó Piros) */
.alert-danger,
.error-msg,
.error-message {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.15);
}

/* Figyelmeztetés (Félátlátszó Vérnarancs) */
.alert-warning,
.warning-msg {
    background: rgba(235, 94, 40, 0.15);
    border: 1px solid rgba(235, 94, 40, 0.5);
    color: #ff7e40;
    text-shadow: 0 0 8px rgba(235, 94, 40, 0.3);
    box-shadow: 0 0 20px rgba(235, 94, 40, 0.15);
}

/* Sikeres tájékoztatás / Fúzió (Félátlátszó Kiber-zöld) */
.alert-success,
.success-msg,
.success-message {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.15);
}

/* ==========================================================================
   8. ŰRLAPVÁLTÓK, ALSÓ FULL-WIDTH ZÓNA ÉS TILT LETILTÁSOK
   ========================================================================== */
.auth-form { 
    display: none; 
    flex-direction: column; 
    gap: 18px; 
    position: relative; 
    z-index: 2;
    width: 100%;
}

.auth-form.active { 
    display: flex; 
    animation: fadeIn 0.4s ease forwards; 
}

/* Két oszlop alatti teljes szélességű súgó panel */
.auth-bottom-full-width {
    margin-top: 30px;
    width: 100%;
    display: block;
    clear: both;
}

.auth-switch { 
    text-align: center; 
    margin-top: 15px; 
    font-size: 0.95rem; 
    color: var(--color-silver); 
    font-weight: 600; 
    line-height: 1.5;
}

.auth-switch span { 
    color: var(--color-gold); 
    cursor: pointer; 
    text-decoration: underline; 
    text-shadow: 0 0 8px var(--color-gold-glow); 
    transition: color 0.3s ease; 
}

.auth-switch span:hover { 
    color: #ffffff; 
}

body.light-mode .auth-switch span:hover { 
    color: #000000; 
}

.profile-pic { 
    width: 100px; 
    height: 100px; 
    border-radius: 0; 
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 15, 10, 0.9)); 
    border: 2px solid var(--color-gold); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 2.5rem; 
    color: var(--color-gold); 
    box-shadow: 
        0 0 20px var(--color-gold-glow), 
        inset 0 0 10px rgba(255, 255, 255, 0.1); 
    position: relative; 
    z-index: 2;
} 

body.light-mode .profile-pic { 
    background: linear-gradient(135deg, rgba(248, 245, 240, 1), rgba(235, 230, 220, 1)); 
    box-shadow: 
        0 0 20px rgba(179, 107, 0, 0.15), 
        inset 0 0 10px rgba(0, 0, 0, 0.05); 
}

/* SZOFTVERES TILT HOVER LETILTÁS */
.tilt-card {
    transform: none;
    transition: none;
}
.tilt-card:hover {
    transform: none;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (VISSZALÉPÉS MOBILRA ÉS TABLETRE)
   ========================================================================== */
@media (max-width: 850px) {
    .auth-container {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .auth-two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .auth-divider-line {
        margin: 15px 0;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Theme Engine bridge: authentication controls inherit the active theme. */
body.theme-light .auth-container{color:var(--theme-text);border-color:var(--theme-line);background:var(--theme-card)}
body.theme-light .auth-title,body.theme-light .auth-guide-box strong{color:var(--theme-text-strong)}
body.theme-light .auth-container input,body.theme-light .auth-container textarea,body.theme-light .auth-container select{color:var(--theme-text-strong)}
body.theme-dark .auth-container{color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-line)}
body.theme-dark .auth-title,body.theme-dark .auth-guide-box strong{color:var(--theme-text-strong)}
body.theme-neutral .auth-container{color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-line)}
body.theme-neutral .auth-title,body.theme-neutral .auth-guide-box strong{color:var(--theme-text-strong)}
