﻿/* =============================================================================
   login.css — HoopTrack Auth Pages
   ============================================================================= */

body.login-body-dynamic {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}

/* ── FOND : pleine page, pas de zoom, pas d'overlay ── */
.login-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bgFadeIn 1.2s ease forwards;
    z-index: 0;
}

@keyframes bgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* OVERLAY SUPPRIMÉ — transparent total */
.login-bg-overlay {
    display: none;
}

/* ── LAYOUT : flexbox pleine hauteur ── */
.login-layout {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14vw;   /* ← augmentez cette valeur pour aller plus à gauche */
}

/* ── Panneau gauche : tagline cachée ── */
.login-left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
}

.login-tagline {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.login-tagline span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    /* Texte blanc avec ombre foncée = lisible sur fond CLAIR et FONCÉ */
    color: rgba(255, 255, 255, 0.82);
    text-shadow:
            1px 1px 0px rgba(0,0,0,0.9),
            0px 0px 12px rgba(0,0,0,0.8),
            0px 2px 20px rgba(0,0,0,0.7);
}

.tagline-line1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.tagline-line2 { font-size: clamp(3.5rem, 7vw, 6rem); }
.tagline-line3 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    color: rgba(255, 107, 0, 0.90);      /* orange HoopTrack */
    text-shadow:
            1px 1px 0px rgba(0,0,0,0.9),
            0px 0px 12px rgba(0,0,0,0.7);
}

/* ── Panneau droit : juste la carte, sans fond ── */
.login-right-panel {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}



/* ══════════════════════════════════════════════════════
   CARTE DE CONNEXION
══════════════════════════════════════════════════════ */
.login-card-dynamic {
    width: 380px;
    background: rgba(15, 15, 15, 0.93);
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: 18px;
    padding: 2.5rem 2rem;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 107, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.login-card-dynamic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #ff6b00 35%,
        #ff9500 65%,
        transparent
    );
}

/* ══════════════════════════════════════════════════════
   CRÉDIT UNSPLASH
══════════════════════════════════════════════════════ */
.unsplash-credit {
    position: fixed;
    bottom: 12px;
    left: 16px;
    z-index: 10;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.unsplash-credit:hover { color: rgba(255, 255, 255, 0.80); }

.unsplash-credit a {
    color: rgba(255, 107, 0, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.unsplash-credit a:hover { color: #ff6b00; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    body.login-body-dynamic {
        overflow-y: auto;
    }

    .login-layout {
        position: relative;
        justify-content: center;
        padding: 2rem 1rem;
        min-height: 100vh;
    }

    .login-bg-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
    }

    .login-card-dynamic {
        width: 100%;
        max-width: 400px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .login-card-dynamic {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .login-brand-full {
        max-width: 220px;
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    body.login-body-dynamic {
        overflow-y: auto;
    }

    /* Overlay léger pour lisibilité mobile */
    .login-bg-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.50);
        z-index: 1;
    }

    /* Layout : colonne verticale, alignée en haut */
    .login-layout {
        position: relative;
        z-index: 2;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 1.5rem 2rem;
        gap: 2rem;
    }

    /* Panneau gauche : tagline visible EN HAUT sur mobile */
    .login-left-panel {
        display: flex;
        flex: unset;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Tagline centrée sur mobile */
    .login-tagline {
        align-items: center;
        text-align: center;
        gap: 0.1rem;
    }

    .tagline-line1,
    .tagline-line2,
    .tagline-line3 {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    /* Panneau droit : form en dessous */
    .login-right-panel {
        width: 100%;
        max-width: 420px;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
    }

    .login-card-dynamic {
        width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (≤ 400px)
══════════════════════════════════════════════════════ */
@media (max-width: 400px) {

    .login-layout {
        padding: 2rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .tagline-line1,
    .tagline-line2,
    .tagline-line3 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .login-card-dynamic {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .login-brand-full {
        max-width: 200px;
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE PAYSAGE (hauteur ≤ 500px)
══════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {

    body.login-body-dynamic {
        overflow-y: auto;
    }

    .login-bg-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.40);
        z-index: 1;
    }

    /* Layout horizontal comme desktop mais compact */
    .login-layout {
        position: relative;
        z-index: 2;
        min-height: 100vh;
        display: flex;
        flex-direction: row;          /* ← horizontal */
        align-items: center;
        justify-content: space-between;
        padding: 1rem 3vw;
        gap: 1rem;
    }

    /* Tagline à gauche, taille réduite */
    .login-left-panel {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .login-tagline {
        align-items: flex-start;
        text-align: left;
        gap: 0;
    }

    .tagline-line1,
    .tagline-line2,
    .tagline-line3 {
        font-size: clamp(1.6rem, 5vh, 2.8rem);  /* ← basé sur vh pas vw */
    }

    /* Card à droite, compacte en hauteur */
    .login-right-panel {
        width: auto;
        flex-shrink: 0;
        padding: 0;
        background: transparent;
        border: none;
    }

    .login-card-dynamic {
        width: 320px;
        padding: 1.2rem 1.5rem;      /* ← padding réduit */
        border-radius: 14px;
        overflow-y: auto;
        max-height: 95vh;            /* ← ne dépasse jamais l'écran */
    }

    /* Réduire les espacements internes de la card */
    .login-card-dynamic .mb-4 {
        margin-bottom: 0.6rem !important;
    }

    .login-card-dynamic .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Logo plus petit */
    .login-brand-full {
        max-width: 160px;
        margin-bottom: 0.5rem !important;
    }
}