
/* [1] RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    width: 100%;
    overflow: hidden; 
    display: flex;
    background: #f8f9fa;
}

/* =========================================
   [2] LEFT SIDE: BRAND VISUAL
   ========================================= */
.brand-section {
    width: 55%; 
    background-color: #050505;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    overflow: hidden;
}

.gold-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -100px; left: -100px;
    border-radius: 50%; filter: blur(60px);
    animation: floatGlow 10s infinite alternate;
}

.gold-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -50px; right: -50px;
    border-radius: 50%; filter: blur(80px);
    animation: floatGlow 8s infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

.brand-content { position: relative; z-index: 10; }

.brand-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.brand-title {
    font-size: 52px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px;

    /* --- HNA L-FIX --- */
    /* Mse7na background-clip o darna loun 3adi bach y-ban dima */
    color: #ffffff; 
}

.brand-desc { font-size: 18px; color: #888; line-height: 1.6; max-width: 450px; }

.glass-card {
    position: absolute; bottom: 50px; right: 50px; width: 280px; padding: 20px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); border-radius: 20px;
    display: flex; align-items: center; gap: 15px; z-index: 5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: floatCard 6s ease-in-out infinite;
}

.glass-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #D4AF37, #FFE57F);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   [3] RIGHT SIDE: LOGIN FORM
   ========================================= */
.login-section {
    width: 45%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 20;
    box-shadow: -15px 0 40px rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.03);
}

.login-container {
    width: 100%;
    max-width: 380px;
    animation: fadeUp 0.8s ease-out;
}

.logo-mobile {
    /* 1. Affichage */
    display: block; 
    
    /* 2. ALIGNEMENT A GAUCHE (Hada howa l-fix) */
    margin: 0 0 25px 0; /* 0 foq, 0 limn, 25 t7t, 0 lissr */
    
    /* 3. Taille & Style */
    height: 70px; 
    width: 70px; 
    
    /* App Icon Style */
    border-radius: 18px; 
    border: 1px solid rgba(212, 175, 55, 0.3); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
    object-fit: cover; 
    
    /* Animation */
    transition: transform 0.3s ease;
}

/* Effet Hover (Bonus) */
.logo-mobile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.8);
}

h2 {
    font-size: 32px; font-weight: 800; color: #000; margin-bottom: 12px; letter-spacing: -1px;
}

.welcome-text {
    color: #666; font-size: 16px; margin-bottom: 40px; line-height: 1.5;
}

/* --- [INPUT DESIGN: LE CHANGEMENT MAJEUR] --- */
.input-group { margin-bottom: 25px; }

.input-label {
    display: block; font-size: 13px; font-weight: 600; color: #111; margin-bottom: 10px;
}

.input-field {
    width: 100%;
    padding: 18px;
    
    /* Background Gris fate7 */
    background: #F9FAFB;
    
    /* Border Invisible (Transparent) f l-état normal */
    border: 1px solid transparent; 
    
    /* Radius M9awess mzyan */
    border-radius: 16px; 
    
    /* Font */
    font-size: 15px; font-family: inherit; color: #000;
    
    /* --- SHADOW KHFIF (L-te7t) --- */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    
    /* Transition smooth */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- HOVER EFFECT: Mlli t-douz souris --- */
.input-field:hover {
    background: #ffffff; /* Kay-welli byed nase3 */
    transform: translateY(-2px); /* Kay-t-haz chwiya l-fouq */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Shadow kiy-welli 9wi */
}

/* --- FOCUS EFFECT: Mlli t-kteb --- */
.input-field:focus {
    background: #ffffff;
    border-color: #D4AF37; /* Border D-hbi kiban */
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); /* Glow khfif */
    transform: translateY(-2px);
}


/* Button */
.btn-login {
    width: 100%; padding: 20px;
    background: #000; color: white;
    border: none; border-radius: 14px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-top: 15px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-login:hover {
    background: #222; transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

#error-msg {
    color: #FF3B30; font-size: 13px; font-weight: 600;
    margin-top: 25px; text-align: center; min-height: 20px;
}

.footer-copy {
    position: absolute; bottom: 18px; left: 0; right: 0;
    text-align: center; font-size: 12px; color: #aaa;
}

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

/* --- Zid hadchi f l-lkher dyal login.css --- */

.forgot-pass-wrapper {
    text-align: center;    /* Bach t-ji f l-wst m3a l-bouton */
    margin-top: 42px;      /* Espace mzyan bla ma-yji l-footer lase9 */
    margin-bottom: 10px;   /* Bach ma-tlse9ch f l-footer l-te7tani */
    font-size: 14px;       /* Kbbarnaha chwiya bach t9ra */
}

/* Secondary switch between Card login and Restaurant login */
.login-switch {
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

/* Restaurant login tweaks: lift the footer area and brand it */
body.login-restaurant .forgot-pass-wrapper {
    margin-top: 28px;
    margin-bottom: 18px;
}

body.login-restaurant .footer-copy {
    color: rgba(170, 170, 170, 0.92);
}
.forgot-text {
    color: #888888;        /* Gris fate7 chwiya (Question) */
    font-weight: 500;
}

.forgot-link {
    color: #000000;        /* K7el Nase3 (Lien) */
    font-weight: 700;      /* Ghlid (Bold) */
    text-decoration: none; /* Bla ster t7to */
    margin-left: 4px;      /* Espace sghir binou o bin so2al */
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #D4AF37;        /* Mlli t-9isso y-welli Gold */
    text-decoration: underline;
}


/* =========================================
   [4] RESPONSIVE MOBILE
   ========================================= */
   
/* =========================================
   [FIX FINAL] RESPONSIVE MOBILE (Corrected)
   ========================================= */
@media (max-width: 900px) {

    /* 1. BODY: Sttef Brand lfoq o Login lte7t */
    body {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto; 
        overflow-x: hidden;
    }

    /* 2. BRAND SECTION (L-Fougani) */
    .brand-section {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 500px; /* Tul fix */
        
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start !important; 
        align-items: center !important; /* Center horizontal */
        
        /* 3. Espace mn l-foq bach l-ktba t-ji f blasstha */
        padding-top: 80px !important;
        
        /* Clip path li 3jbek */
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
        padding: 40px 20px 60px 20px;
        background: radial-gradient(circle at top, #1a1a1a 0%, #000000 70%);
        z-index: 1;
    }

    .brand-title { font-size: 28px !important; text-align: center; margin-bottom: 15px !important; color: white; }
    .brand-desc { font-size: 13px !important; text-align: center; max-width: 300px; margin: 0 auto; color: rgba(255,255,255,0.7); display: block !important; }
    .brand-tag { display: none; }

    /* 3. LOGIN SECTION (L-Te7tani) */
    .login-section {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        
        padding: 0 20px 40px 20px;
        margin-top: -200px; /* Overlap effect */
        
        position: relative;
        z-index: 10;
        
        /* ⚠️ HADA HOWA L-FIX: Rddinaha 'column' bach footer y-hbet l-te7t */
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* 4. LOGIN CONTAINER (L-Box) */
    .login-container {
        width: 100% !important;
        max-width: 400px !important; /* 7bessna l-3ard */
        background: #fff; /* Rddinaha byda nase3 bach t-ban mzyan */
        border-radius: 24px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        padding: 30px 25px;
        margin-bottom: 20px; /* Espace binha o bin footer */
    }

    /* 5. FOOTER (Dabba ghay-ji l-te7t m9ad) */
    .footer-copy {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 10px;
        text-align: center;
        color: #999;
        font-size: 12px;
        width: 100%;
        display: block !important;
    }

    /* Styles d-Mobile */
    .logo-mobile { display: block; margin: 0 auto 20px auto; height: 65px; width: 65px; border-radius: 16px; border: 1px solid rgba(212,175,55,0.4); }
    h2 { font-size: 24px; text-align: center; }
    .welcome-text { text-align: center; font-size: 14px; margin-bottom: 25px; }
    .input-field { padding: 16px; font-size: 16px; }
    
    /* Animation Card (Optional) */
    .glass-card { display: none !important; } /* N7iyydoha f mobile bach n-khfffo */
}

/* Animation Jdida (Kat-t7rrek f blast-ha) */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   [5] DESKTOP COMPACT VIEW (Fix l-Kbourya)
   ========================================= */

@media (min-width: 901px) {
    /* 1. Sgherna l-ktba f l-jiha d l-k7el */
    .brand-title {
        font-size: 42px !important; /* Blast 52px */
    }
    
    .brand-desc {
        font-size: 16px !important; /* Blast 18px */
    }

    /* 2. Sgherna l-jiha dyal l-form (L-form k-i-bqa m-center) */
    .login-container {
        max-width: 340px !important; /* Blast 380px */
        transform: scale(0.9); /* Trick bach n-sghro kolchi b 10% f PC */
        transform-origin: center;
        animation: fadeUpPC 0.8s ease-out !important;
    }

    /* 3. Sgherna l-padding d l-inputs bach may-banouch kbar bzaf */
    .input-field {
        padding: 14px 18px !important; /* Blast 18px */
        font-size: 14px !important;
    }

    .btn-login {
        padding: 16px !important; /* Blast 20px */
        font-size: 15px !important;
    }

    /* 4. Sgherna l-logo m-mobile f Desktop */
    .logo-mobile {
        height: 60px !important;
        width: 60px !important;
        margin-bottom: 20px !important;
    }
}
/* Animation khassa b-l-PC (Bach t-bda sghira nichan) */
@keyframes fadeUpPC {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.9); /* Bdina sghar */
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(0.9); /* Salina sghar */
    }
}
/* //login.css */
