/* ==========================================================================
   FORTISSIMO SPORTALAPÍTVÁNY
   Központi Bejelentkezési & Alapstíluslap
   Hivatalos Arculati Kódex: Urbanist, #74B9C1, #263C3F, #CDE5E8, #F9FBFC
   ========================================================================== */

:root {
    --primary-color: #74B9C1;
    --primary-vibrant: #54C1C6;
    --primary-dark: #4D7B80;
    --secondary-color: #263C3F;
    --secondary-muted: #4D7B80;
    --pale-mint: #CDE5E8;
    --soft-teal: #A0CFD5;
    --bg-canvas: #F9FBFC;
    --card-bg: #FFFFFF;
    --white: #FFFFFF;
    
    --text-color: #263C3F;
    --text-muted: #5e7375;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    
    --shadow-subtle: 0 4px 15px rgba(38, 60, 63, 0.05);
    --shadow-card: 0 16px 45px rgba(38, 60, 63, 0.09);
    --shadow-glow: 0 0 20px rgba(116, 185, 193, 0.35);
    
    --border-radius-card: 24px;
    --border-radius-input: 14px;
    --border-radius-pill: 9999px;
    
    --font-main: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    color-scheme: light !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-page {
    font-family: var(--font-main);
    background-color: var(--bg-canvas);
    color: var(--text-color);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

/* Finom Arculati Terülőminta a háttérben */
body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('img/terulominta.png');
    background-size: 700px;
    background-position: center center;
    background-repeat: repeat;
    opacity: 0.04;
    z-index: -2;
    pointer-events: none;
}

/* Finom háttér-aurák (ambient glow) */
.login-glow-orb-1 {
    position: fixed;
    top: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(116, 185, 193, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.login-glow-orb-2 {
    position: fixed;
    bottom: -120px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(84, 193, 198, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Fortissimo Térkitöltő Grafikai Elemek a háttérben */
.forti-bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.14;
    transition: transform 0.5s ease;
}

.forti-bg-shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.forti-shape-1 {
    top: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    animation: fortiFloat 18s ease-in-out infinite alternate;
}

.forti-shape-2 {
    bottom: -80px;
    left: -80px;
    width: 440px;
    height: 440px;
    animation: fortiFloatRev 22s ease-in-out infinite alternate;
}

.forti-shape-3 {
    top: 48%;
    left: 48%;
    width: 260px;
    height: 260px;
    opacity: 0.08;
    transform: translate(-50%, -50%);
    animation: fortiPulseShape 12s ease-in-out infinite alternate;
}

@keyframes fortiFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(28px) rotate(8deg); }
}

@keyframes fortiFloatRev {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-24px) rotate(-6deg); }
}

@keyframes fortiPulseShape {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.08) rotate(10deg); }
}

/* ===== BEJELENTKEZÉSI TÖBBPANEL-ELRENDEZÉS ===== */
.login-split-container {
    max-width: 1140px;
    width: 100%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Bal oszlop: Rendszer-showcase */
.login-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: loginCardReveal 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.showcase-heading {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
    margin: 0;
}

.showcase-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-vibrant) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.showcase-lead {
    font-size: 1.05rem;
    color: var(--secondary-muted);
    line-height: 1.6;
    margin: 0;
}

/* Videó Keret az oldalsávban */
.showcase-video-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--pale-mint);
    box-shadow: 0 16px 36px rgba(38, 60, 63, 0.1);
    background: #000000;
    aspect-ratio: 16 / 10;
}

.showcase-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pillér Kártyák */
.showcase-pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pillar-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--pale-mint);
    border-radius: 16px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}

.pillar-mini-card:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(38, 60, 63, 0.08);
}

.pillar-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(116, 185, 193, 0.15);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 6px;
}

.pillar-mini-icon img,
.pillar-mini-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pillar-mini-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pillar-mini-text strong {
    font-size: 0.92rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.pillar-mini-text span {
    font-size: 0.8rem;
    color: var(--secondary-muted);
    font-weight: 600;
}

/* FŐ BEJELENTKEZÉSI KÁRTYA */
.login-card {
    background: #FFFFFF;
    border: 1.5px solid var(--pale-mint);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    width: 100%;
    padding: 38px 34px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: loginCardReveal 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.card-corner-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.card-corner-shape img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes loginCardReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .showcase-video-box {
        display: none !important;
    }
    .login-glow-orb-1,
    .login-glow-orb-2 {
        display: none !important;
    }
    .forti-bg-shape {
        animation: none !important;
        transform: none !important;
        opacity: 0.04 !important;
    }
    .login-split-container {
        display: flex;
        flex-direction: column;
        max-width: 440px;
        margin: 12px auto;
        gap: 0;
    }
    .login-showcase {
        display: none !important; /* Mobilon kizárólag a letisztult bejelentkező kártyára fókuszálunk a maximális sebesség és egyszerűség érdekében */
    }
    .login-card {
        order: 1;
        padding: 30px 22px;
        border-radius: 22px;
        box-shadow: 0 10px 32px rgba(38, 60, 63, 0.08);
    }
}

.btn-login-pill.is-loading {
    opacity: 0.85;
    pointer-events: none;
    cursor: wait;
}

.btn-login-pill.is-loading .btn-arrow {
    transform: rotate(360deg);
    transition: transform 0.8s linear infinite;
}

/* Fejléc & Logó */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 18px;
    transition: transform 0.25s ease;
}

.logo-link:hover {
    transform: scale(1.03);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.94rem;
    color: var(--secondary-muted);
    font-weight: 500;
}

/* Űrlap és Mezők */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    font-family: var(--font-main);
    background-color: var(--bg-canvas);
    color: var(--text-color);
    border: 1.5px solid var(--pale-mint);
    border-radius: var(--border-radius-input);
    padding: 16px 18px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(116, 185, 193, 0.22);
}

.input-wrapper label {
    position: absolute;
    top: 17px;
    left: 18px;
    color: var(--secondary-muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -9px;
    left: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--secondary-color);
    background-color: #FFFFFF;
    padding: 0 6px;
    border-radius: 4px;
}

/* Jelszó Megjelenítése Ikon */
.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-muted);
    font-size: 1.05rem;
    transition: color 0.2s;
    z-index: 5;
}

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

/* Hivatalos Arculati Sötét Pill Gomb (Styleguide Page 9 & 13) */
.btn-login-pill {
    background-color: var(--secondary-color);
    color: #FFFFFF !important;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-main);
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(38, 60, 63, 0.16);
    margin-top: 6px;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.btn-login-pill:hover {
    background-color: #1a2a2c;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 60, 63, 0.24);
}

.btn-login-pill:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-login-pill:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Kiegészítő Gombok & Akciók */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--secondary-muted);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-guest-pill {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--pale-mint);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-guest-pill:hover {
    background-color: var(--bg-canvas);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* QR Kód Pill */
.qr-action-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pale-mint);
}

.btn-qr-pill {
    width: 100%;
    background-color: #F4F9FA;
    color: var(--secondary-color);
    border: 1.5px solid var(--pale-mint);
    padding: 11px 16px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 2px 6px rgba(38, 60, 63, 0.04);
}

.btn-qr-pill:hover {
    background-color: #FFFFFF;
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(38, 60, 63, 0.08);
}

/* Tábor Kiemelés */
.camp-highlight {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(116, 185, 193, 0.1) 0%, rgba(205, 229, 232, 0.2) 100%);
    border: 1px solid var(--pale-mint);
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.camp-highlight:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.camp-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--secondary-color);
}

.camp-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--pale-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.camp-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.camp-title {
    font-size: 0.94rem;
    font-weight: 800;
}

.camp-sub {
    font-size: 0.8rem;
    color: var(--secondary-muted);
    font-weight: 600;
}

/* Lábléc */
.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pale-mint);
    text-align: center;
}

.laurel-mark {
    margin-bottom: 8px;
}

.laurel-mark img {
    height: 20px;
    width: auto;
    opacity: 0.7;
}

.motto {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--secondary-muted);
    margin-bottom: 10px;
}

.credits {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-muted);
    margin-bottom: 10px;
}

.credits a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
}

.credits a:hover {
    text-decoration: underline;
}

.home-nav a {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.home-nav a:hover {
    color: var(--primary-dark);
    transform: translateX(-3px);
}

/* QR Olvasó Overlay */
#qr-reader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 60, 63, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#qr-reader {
    width: 90%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

/* ===== MODÁLIS ABLAKOK (Vendég foglalás stb.) ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 60, 63, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #FFFFFF;
    padding: 34px;
    border-radius: var(--border-radius-card);
    width: 90%;
    max-width: 520px;
    border: 1px solid var(--pale-mint);
    box-shadow: var(--shadow-card);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPopIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-canvas);
    border: 1px solid var(--pale-mint);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: var(--secondary-color);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Toast Értesítések */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 14px 22px;
    border-radius: 14px;
    color: #FFFFFF;
    font-weight: 700;
    font-family: var(--font-main);
    box-shadow: 0 8px 24px rgba(38, 60, 63, 0.15);
    background-color: var(--secondary-color);
    animation: toast-in 0.4s ease-out, toast-out 0.4s 3.5s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background-color: var(--primary-dark); }
.toast.error { background-color: var(--danger-color); }
.toast.info { background-color: var(--secondary-color); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Mobilos Finomhangolás */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Letiltott / Értesítő Bejelentkezési Modál Ikon */
.disabled-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(116, 185, 193, 0.15);
    color: var(--primary-dark, #4D7B80);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px auto;
    border: 1.5px solid var(--pale-mint, #CDE5E8);
}

