/* Login: a hero on two thirds of the screen, the form on the other third (large screens only;
   phones and tablets keep the form on its own). Colours from eyumba-hero.css. */
.ey-login, .ey-login input, .ey-login button { font-family: "Plus Jakarta Sans", sans-serif; }

/* Phosphor icons in the inputs (iconset="ph"), here and in the password recovery steps */
.input-icon .ph-duotone { font-size: 22px; vertical-align: middle; color: var(--ey-brown, #6b3a1a); }
.password-toggle-icon .ph-duotone { font-size: 20px; vertical-align: middle; }

@media (min-width: 992px) {
    .ey-login.login-container { justify-content: flex-start !important; align-items: stretch !important; }

    .ey-login .ey-login-hero {
        position: relative; overflow: hidden;
        flex: 0 0 66.6667%; max-width: 66.6667%; height: 100%;
        align-items: flex-end; padding: 56px 64px;
        background: #2b1a0e url('/media/images/eyumba-hero-pan-african.jpg') center / cover no-repeat;
    }
    .ey-login .ey-login-hero::after {
        content: ""; position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(30, 16, 6, .72));
    }

    /* The carousel: five photos, 6s each, cross-fading with a slow zoom */
    .ey-login .ey-login-slides span {
        position: absolute; inset: 0; opacity: 0;
        background-size: cover; background-position: center;
        animation: ey-login-slide 30s infinite;
    }
    .ey-login .ey-login-slides span:nth-child(2) { animation-delay: 6s; }
    .ey-login .ey-login-slides span:nth-child(3) { animation-delay: 12s; }
    .ey-login .ey-login-slides span:nth-child(4) { animation-delay: 18s; }
    .ey-login .ey-login-slides span:nth-child(5) { animation-delay: 24s; }

    .ey-login .ey-login-dots { position: absolute; z-index: 2; right: 64px; bottom: 64px; display: flex; gap: 8px; }
    .ey-login .ey-login-dots i {
        display: block; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .5);
        animation: ey-login-dot 30s infinite;
    }
    .ey-login .ey-login-dots i:nth-child(2) { animation-delay: 6s; }
    .ey-login .ey-login-dots i:nth-child(3) { animation-delay: 12s; }
    .ey-login .ey-login-dots i:nth-child(4) { animation-delay: 18s; }
    .ey-login .ey-login-dots i:nth-child(5) { animation-delay: 24s; }

    .ey-login .ey-login-hero-copy { position: relative; z-index: 2; max-width: 560px; color: #fff; }
    .ey-login .ey-login-hero-copy h1 { font-size: 40px; line-height: 1.15; font-weight: 800; margin: 0 0 14px; color: #fff; }
    .ey-login .ey-login-hero-copy h1::before {
        content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
        background: var(--ey-gold, #e0a526); margin-bottom: 20px;
    }
    .ey-login .ey-login-hero-copy p { font-size: 17px; line-height: 1.55; margin: 0; color: rgba(255, 255, 255, .88); }

    .ey-login .login-form-container {
        flex: 0 0 33.3333% !important; max-width: 33.3333% !important;
        height: 100% !important; max-height: none !important; border-radius: 0 !important;
    }
    .ey-login .login-form { border-radius: 0 !important; box-shadow: none !important; padding: 32px 40px !important; }
    .ey-login .login-form > .flex-1 > div { justify-content: center !important; }
}

@keyframes ey-login-slide {
    0%   { opacity: 0; transform: scale(1.08); }
    4%   { opacity: 1; }
    20%  { opacity: 1; }
    24%  { opacity: 0; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.02); }
}
@keyframes ey-login-dot {
    0%, 22%   { width: 22px; background: var(--ey-gold, #e0a526); }
    24%, 100% { width: 8px; background: rgba(255, 255, 255, .5); }
}

@media (prefers-reduced-motion: reduce) {
    .ey-login .ey-login-slides span, .ey-login .ey-login-dots i { animation: none; }
}
