/* Page de connexion École — cohérence visuelle avec l'accueil KALASA */

/* Variante Enseignant — vert sobre #008000 */
.kalasa-login-page--enseignant .kalasa-login-brand {
    background: linear-gradient(135deg, #006600 0%, #008000 50%, #339933 100%);
}

.kalasa-login-page--enseignant .kalasa-login-shape-1 {
    background: #4caf50;
}

.kalasa-login-page--enseignant .kalasa-login-shape-2 {
    background: #66bb6a;
}

.kalasa-login-page--enseignant .kalasa-login-shape-3 {
    background: #a5d6a7;
}

.kalasa-login-page--enseignant .kalasa-login-badge {
    color: #e8f5e8;
}

.kalasa-login-page--enseignant .kalasa-login-feature i {
    color: #008000;
}

.kalasa-login-page--enseignant .kalasa-login-submit {
    background: linear-gradient(135deg, #008000, #339933) !important;
}

.kalasa-login-page--enseignant .kalasa-login-submit:hover {
    background: linear-gradient(135deg, #006600, #008000) !important;
    box-shadow: 0 8px 24px rgba(0, 128, 0, 0.35);
}

.kalasa-login-page--enseignant .kalasa-login-links a,
.kalasa-login-page--enseignant .kalasa-login-footer a {
    color: #008000;
}

.kalasa-login-page--enseignant .kalasa-login-input:focus {
    border-color: #008000;
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.15);
}

.kalasa-login-page--enseignant .kalasa-login-toggle-pwd:hover {
    color: #008000;
    background: #f6fbf6;
}

/* Variante Élève — orange sobre #FFA500 */
.kalasa-login-page--eleve .kalasa-login-brand {
    background: linear-gradient(135deg, #CC8400 0%, #FFA500 50%, #FFB733 100%);
}

.kalasa-login-page--eleve .kalasa-login-shape-1 {
    background: #FFC04D;
}

.kalasa-login-page--eleve .kalasa-login-shape-2 {
    background: #FFD180;
}

.kalasa-login-page--eleve .kalasa-login-shape-3 {
    background: #FFE0B3;
}

.kalasa-login-page--eleve .kalasa-login-badge {
    color: #FFF3E0;
}

.kalasa-login-page--eleve .kalasa-login-feature i {
    color: #FFA500;
}

.kalasa-login-page--eleve .kalasa-login-submit {
    background: linear-gradient(135deg, #FFA500, #FFB733) !important;
}

.kalasa-login-page--eleve .kalasa-login-submit:hover {
    background: linear-gradient(135deg, #CC8400, #FFA500) !important;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.35);
}

.kalasa-login-page--eleve .kalasa-login-links a,
.kalasa-login-page--eleve .kalasa-login-footer a {
    color: #FFA500;
}

.kalasa-login-page--eleve .kalasa-login-input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.15);
}

.kalasa-login-page--eleve .kalasa-login-toggle-pwd:hover {
    color: #FFA500;
    background: #FFFAF5;
}

/* Variante IRIS — fond noir */
.kalasa-login-page--iris .kalasa-login-brand {
    background: linear-gradient(145deg, #000000 0%, #0a0a0a 50%, #171717 100%);
}

.kalasa-login-page--iris .kalasa-login-shape-1 {
    background: #262626;
}

.kalasa-login-page--iris .kalasa-login-shape-2 {
    background: #1a1a1a;
}

.kalasa-login-page--iris .kalasa-login-shape-3 {
    background: #404040;
}

.kalasa-login-page--iris .kalasa-login-badge {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.kalasa-login-page--iris .kalasa-login-feature i {
    color: #171717;
}

.kalasa-login-page--iris .kalasa-login-submit {
    background: linear-gradient(135deg, #171717, #404040) !important;
}

.kalasa-login-page--iris .kalasa-login-submit:hover {
    background: linear-gradient(135deg, #000000, #262626) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kalasa-login-page--iris .kalasa-login-links a,
.kalasa-login-page--iris .kalasa-login-footer a {
    color: #171717;
}

.kalasa-login-page--iris .kalasa-login-input:focus {
    border-color: #404040;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.kalasa-login-page--iris .kalasa-login-toggle-pwd:hover {
    color: #171717;
    background: #f5f5f5;
}

.kalasa-login-page {
    margin: 0;
    min-height: 100vh;
    background: #f5f6f9;
    font-family: var(--kalasa-font, 'Aptos Narrow', 'Segoe UI', system-ui, sans-serif);
}

.kalasa-login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* —— Panneau gauche animé —— */
.kalasa-login-brand {
    position: relative;
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #02112a 0%, #0b3d91 45%, #1e5bb8 100%);
    color: #fff;
    overflow: hidden;
}

.kalasa-login-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.kalasa-login-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.kalasa-login-shape-1 {
    width: 380px;
    height: 380px;
    background: #3b82f6;
    top: -100px;
    right: -60px;
    animation: kalasa-login-pulse 8s ease-in-out infinite;
}

.kalasa-login-shape-2 {
    width: 280px;
    height: 280px;
    background: #60a5fa;
    bottom: -50px;
    left: -50px;
    animation: kalasa-login-pulse 10s ease-in-out infinite reverse;
}

.kalasa-login-shape-3 {
    width: 180px;
    height: 180px;
    background: #93c5fd;
    top: 45%;
    left: 30%;
    animation: kalasa-login-pulse 12s ease-in-out infinite;
}

@keyframes kalasa-login-pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.12) translate(8px, -8px); opacity: 0.45; }
}

.kalasa-login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.kalasa-login-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.kalasa-login-logo-white {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.kalasa-login-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #e0eaff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.kalasa-login-brand-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.kalasa-login-brand-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.kalasa-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    min-height: 140px;
}

.kalasa-login-feature {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    color: #02112a;
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.kalasa-login-feature i {
    color: #0b3d91;
    font-size: 1.2rem;
}

.kalasa-login-feature-1 {
    top: 0;
    left: 0;
    animation: kalasa-login-float-left 6s ease-in-out infinite;
}

.kalasa-login-feature-2 {
    top: 42%;
    right: 0;
    animation: kalasa-login-float-right 7s ease-in-out infinite;
}

.kalasa-login-feature-3 {
    bottom: 0;
    left: 8%;
    animation: kalasa-login-float-main 5s ease-in-out infinite;
}

@keyframes kalasa-login-float-left {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes kalasa-login-float-right {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
}

@keyframes kalasa-login-float-main {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* —— Panneau droit formulaire —— */
.kalasa-login-main {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.kalasa-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 16px 48px rgba(11, 61, 145, 0.1);
    animation: kalasa-login-card-in 0.6s ease-out;
}

@keyframes kalasa-login-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kalasa-login-card-header h2 {
    color: #02112a;
    font-weight: 700;
}

.kalasa-login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.kalasa-login-input-wrap {
    position: relative;
}

.kalasa-login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 2;
}

.kalasa-login-input {
    height: 50px;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kalasa-login-input:focus {
    border-color: #0b3d91;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
    outline: none;
}

.kalasa-login-password-wrap .kalasa-login-input {
    padding-right: 3rem;
}

.kalasa-login-toggle-pwd {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.kalasa-login-toggle-pwd:hover {
    color: #0b3d91;
    background: #eff6ff;
}

.kalasa-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b3d91, #2563eb);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kalasa-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.3);
    background: linear-gradient(135deg, #0a3580, #1d4ed8);
}

.kalasa-login-links {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.kalasa-login-links a {
    color: #0b3d91;
    font-weight: 600;
    text-decoration: none;
}

.kalasa-login-links a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kalasa-login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.kalasa-login-footer a {
    color: #0b3d91;
    text-decoration: none;
}

.kalasa-login-footer a:hover {
    text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 991px) {
    .kalasa-login-wrapper {
        flex-direction: column;
    }

    .kalasa-login-brand {
        flex: none;
        padding: 2.5rem 1.5rem 3rem;
    }

    .kalasa-login-brand-lead {
        margin-bottom: 1.5rem;
    }

    .kalasa-login-features {
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        position: static;
    }

    .kalasa-login-feature {
        position: static;
        animation: none !important;
        font-size: 0.8rem;
        padding: 0.55rem 0.85rem;
    }

    .kalasa-login-main {
        padding: 1.5rem 1rem 2rem;
        margin-top: -1.5rem;
    }

    .kalasa-login-card {
        padding: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kalasa-login-shape,
    .kalasa-login-feature,
    .kalasa-login-card {
        animation: none !important;
    }
}
