/* ===== LAYOUT ===== */
.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ===== PANNEAU GAUCHE ===== */
.login-left {
    flex: 0 0 58%;
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 70%, #5c6bc0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formes animées */
.shapes { position: absolute; inset: 0; }

.shape {
    position: absolute;
    border-radius: 50px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.s1 {
    width: 300px; height: 80px;
    background: #ffffff;
    top: 15%; left: -60px;
    transform: rotate(-35deg);
    animation-delay: 0s;
}
.s2 {
    width: 200px; height: 60px;
    background: #7986cb;
    top: 35%; left: 20%;
    transform: rotate(-35deg);
    animation-delay: 1s;
}
.s3 {
    width: 250px; height: 70px;
    background: #ffffff;
    bottom: 25%; left: -30px;
    transform: rotate(-35deg);
    animation-delay: 2s;
}
.s4 {
    width: 180px; height: 50px;
    background: #9fa8da;
    bottom: 12%; left: 30%;
    transform: rotate(-35deg);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: rotate(-35deg) translateY(0px); }
    50%       { transform: rotate(-35deg) translateY(-15px); }
}

/* Contenu gauche */
.left-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 3rem;
    max-width: 480px;
}

.brand-logo {
    font-size: 3.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.left-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.left-content p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.features { display: flex; flex-direction: column; gap: 0.75rem; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.feature-item i {
    color: #69f0ae;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== PANNEAU DROIT ===== */
.login-right {
    flex: 0 0 42%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

/* Header */
.login-header { text-align: center; margin-bottom: 2rem; }

.login-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #3949ab;
    margin: 0 auto 1rem;
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.4rem;
}

.login-header p {
    color: #78909c;
    font-size: 0.9rem;
}

/* SSO Info */
.sso-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #1565c0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sso-info i { flex-shrink: 0; margin-top: 2px; }

/* Bouton Microsoft */
.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #2b579a;
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(43, 87, 154, 0.35);
    letter-spacing: 0.2px;
}

.btn-microsoft:hover {
    background: #1e3f73;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 87, 154, 0.45);
}

.btn-microsoft:active { transform: translateY(0); }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #b0bec5;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eceff1;
}

/* Badges */
.badges {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.badge-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.72rem;
    color: #546e7a;
    font-weight: 500;
}

.badge-item i {
    font-size: 1.2rem;
    color: #3949ab;
}

/* Footer */
.login-footer {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: #cfd8dc;
    text-align: center;
}