/* ============================================================
   Login Page — Intranet Publiscreen / MeetCraft
   Split-screen design : branding à gauche, formulaire à droite
   Charte graphique Publiscreen :
     - Pétrole foncé : #004E6D
     - Rose/Magenta  : #E5467D
     - Bleu ciel     : #4AABE3
     - Or/Jaune      : #F7A823
   ============================================================ */

:root {
    --ps-dark:    #004E6D;
    --ps-darker:  #003A52;
    --ps-light:   #006B8F;
    --ps-pink:    #E5467D;
    --ps-blue:    #4AABE3;
    --ps-gold:    #F7A823;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.login-page {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f7;
    color: #1e293b;
    min-height: 100vh;
}

/* ---------- Split layout ---------- */
.login-split {
    display: flex;
    min-height: 100vh;
}

/* ---------- Left panel : branding ---------- */
.login-brand-panel {
    flex: 0 0 44%;
    background: linear-gradient(160deg, var(--ps-darker) 0%, var(--ps-dark) 50%, var(--ps-light) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Decorative swoosh-inspired shapes (couleurs du logo) */
.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    top: -160px; right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,70,125,0.15) 0%, rgba(229,70,125,0) 70%);
}
.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    bottom: -100px; left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,171,227,0.12) 0%, rgba(74,171,227,0) 70%);
}

/* Third decorative glow (gold) via an extra element on .login-brand-content */
.login-brand-content::before {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    top: 50%; left: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,168,35,0.08) 0%, rgba(247,168,35,0) 70%);
    pointer-events: none;
}

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

.login-brand-logo {
    margin-bottom: 1.75rem;
}
.login-brand-logo img {
    height: 48px;
    width: auto;
    /* Pas de filtre : on garde les couleurs originales du logo */
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Colored dot trio echoing the logo swooshes */
.login-brand-badge::before {
    content: '';
    display: inline-block;
    width: 22px; height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ps-pink), var(--ps-blue), var(--ps-gold));
    flex-shrink: 0;
}

.login-brand-tagline {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.55;
    opacity: 0.92;
    margin-bottom: 2.5rem;
}

/* Feature list */
.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-brand-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.925rem;
    font-weight: 400;
    opacity: 0.92;
}
.login-brand-feature-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.login-brand-feature:hover .login-brand-feature-icon {
    transform: scale(1.1);
}

/* Each feature icon gets a brand color */
.login-brand-feature-icon.icon-pink {
    background: rgba(229,70,125,0.2);
    color: #f9b4ca;
}
.login-brand-feature-icon.icon-blue {
    background: rgba(74,171,227,0.2);
    color: #b3ddf5;
}
.login-brand-feature-icon.icon-gold {
    background: rgba(247,168,35,0.2);
    color: #fce0a2;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    font-size: 0.75rem;
    opacity: 0.45;
}
.login-brand-footer-tagline {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.7;
    letter-spacing: 0.03em;
}

/* ---------- Right panel : form ---------- */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #fff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Header */
.login-form-header {
    margin-bottom: 2rem;
}
.login-form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ps-darker);
    margin-bottom: 0.35rem;
}
.login-form-header p {
    font-size: 0.925rem;
    color: #64748b;
}

/* Google button */
.login-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 0.925rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}
.login-google-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-google-btn:active {
    transform: scale(0.985);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-divider span {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Form fields */
.login-field {
    margin-bottom: 1.15rem;
}
.login-field label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.login-input-wrapper {
    position: relative;
}
.login-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}
.login-input-wrapper input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.925rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}
.login-input-wrapper input::placeholder {
    color: #cbd5e1;
}
.login-input-wrapper input:focus {
    border-color: var(--ps-blue);
    box-shadow: 0 0 0 3px rgba(74,171,227,0.15);
}
.login-input-wrapper input:focus + i,
.login-input-wrapper:has(input:focus) i {
    color: var(--ps-blue);
}

/* Options row */
.login-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}
.login-forgot {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ps-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}
.login-forgot:hover {
    color: var(--ps-pink);
    text-decoration: underline;
}

/* Submit button — gradient from dark petroleum to lighter + pink accent border */
.login-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ps-dark) 0%, var(--ps-darker) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,78,109,0.3);
    position: relative;
    overflow: hidden;
}
/* Subtle gradient accent line at top */
.login-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ps-pink), var(--ps-blue), var(--ps-gold));
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.login-submit-btn:hover::before {
    opacity: 1;
}
.login-submit-btn:hover {
    background: linear-gradient(135deg, var(--ps-darker) 0%, #002a3b 100%);
    box-shadow: 0 6px 22px rgba(0,78,109,0.4);
    transform: translateY(-1px);
}
.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,78,109,0.2);
}
.login-submit-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.login-submit-btn:hover i {
    transform: translateX(3px);
}

/* Error message */
.login-error {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.login-error i {
    flex-shrink: 0;
}

/* Field row (side by side inputs) */
.login-field-row {
    display: flex;
    gap: 0.75rem;
}
.login-field-row .login-field {
    flex: 1;
}

/* Terms checkbox */
.login-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    margin-top: 0.25rem;
}
.login-terms input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--ps-dark);
    cursor: pointer;
    flex-shrink: 0;
}
.login-terms label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
.login-terms label a {
    color: var(--ps-dark);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.login-terms label a:hover {
    color: var(--ps-pink);
}

/* Extra links (register / back to login) */
.login-extra-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}
.login-extra-links a {
    color: var(--ps-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}
.login-extra-links a:hover {
    color: var(--ps-pink);
    text-decoration: underline;
}

/* ---------- Animations ---------- */
.login-brand-content {
    animation: fadeSlideUp 0.7s ease both;
}
.login-form-wrapper {
    animation: fadeSlideUp 0.7s 0.15s ease both;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }
    .login-brand-panel {
        flex: 0 0 auto;
        padding: 2.5rem 2rem 2rem;
        text-align: center;
        align-items: center;
    }
    .login-brand-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }
    .login-brand-feature {
        font-size: 0.8rem;
    }
    .login-brand-feature-icon {
        width: 32px; height: 32px;
        font-size: 0.8rem;
    }
    .login-brand-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .login-brand-footer {
        display: none;
    }
    .login-form-panel {
        padding: 2rem 1.5rem 3rem;
    }
}

@media (max-width: 520px) {
    .login-field-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .login-brand-panel {
        padding: 2rem 1.25rem 1.5rem;
    }
    .login-brand-logo img {
        height: 36px;
    }
    .login-brand-tagline {
        font-size: 1rem;
    }
    .login-brand-features {
        display: none;
    }
    .login-form-panel {
        padding: 1.5rem 1.25rem 2.5rem;
    }
    .login-form-header h1 {
        font-size: 1.5rem;
    }
} 