/* Orange–magenta gradient split — Lotus-style layout */
.login5-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #283593;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login5-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 540px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.login5-form-side {
    flex: 1;
    background: #424242;
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login5-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7043, #ab47bc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.login5-form-side h1 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.login5-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login5-alert {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}

.login5-alert.warn { background: rgba(255, 193, 7, 0.15); color: #ffe082; }
.login5-alert.error { background: rgba(244, 67, 54, 0.2); color: #ffab91; }

.login5-form {
    width: 100%;
    max-width: 320px;
}

.login5-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    padding: 0.7rem 1.1rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    outline: none;
}

.login5-input::placeholder { color: rgba(255, 255, 255, 0.45); }

.login5-input:focus {
    border-color: #ff7043;
}

.login5-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem;
    margin-top: 0.25rem;
    background: linear-gradient(90deg, #ff7043 0%, #ec407a 50%, #ab47bc 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}

.login5-btn:hover { opacity: 0.92; }

.login5-forgot {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
}

.login5-forgot:hover { color: #fff; }

.login5-signup-row {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.login5-outline-btn {
    border: 1px solid #ec407a;
    color: #f48fb1;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.login5-outline-btn:hover {
    background: rgba(236, 64, 122, 0.15);
    color: #fff;
    text-decoration: none;
}

.login5-hero {
    flex: 1;
    background: linear-gradient(135deg, #ff7043 0%, #ec407a 45%, #7b1fa2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 2.5rem;
}

.login5-hero-inner h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.login5-hero-inner p {
    line-height: 1.65;
    opacity: 0.92;
    font-size: 0.95rem;
    margin: 0;
}

.login5-note {
    margin-top: 0.75rem;
    opacity: 0.4;
    font-size: 0.78rem;
}

.login5-page .cms-login-layouts {
    margin-top: 0.75rem;
    justify-content: center;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.login5-page .cms-login-layouts-label,
.login5-page .cms-login-layout-link {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.login5-page .cms-login-layout-link.active {
    background: #ec407a;
    border-color: #ec407a;
    color: #fff;
}

.login5-page .cms-login-layout-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login5-copyright {
    margin: 0.85rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    max-width: 320px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.login5-copyright a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

.login5-copyright a:hover {
    color: #fff;
}

/* ——— Page load + card animations (match classic blue login) ——— */
.login5-page {
    overflow-x: hidden;
}

/* Fail-safe: keep form visible even if JS is blocked */
.login5-animate {
    opacity: 1;
}

.login5-page:not(.cms-auth-ready) .login5-animate {
    opacity: 1;
}

.login5-page.cms-auth-ready .login5-animate-card {
    opacity: 1;
    animation: cmsAuthCardBounce 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) 0.08s both;
}

.login5-page.cms-auth-ready .login5-animate-logo {
    animation: cmsAuthFadeDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.login5-page.cms-auth-ready .login5-animate-title {
    animation: cmsAuthFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.login5-page.cms-auth-ready .login5-animate-sub {
    animation: cmsAuthFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.login5-page.cms-auth-ready .login5-animate-alert {
    animation: cmsAuthFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.login5-page.cms-auth-ready #username.login5-animate-field {
    animation: cmsAuthInputIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.login5-page.cms-auth-ready #password.login5-animate-field {
    animation: cmsAuthInputIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

.login5-page.cms-auth-ready .login5-animate-btn {
    animation: cmsAuthInputIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both;
}

.login5-page.cms-auth-ready .login5-animate-meta {
    animation: cmsAuthFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.login5-page.cms-auth-ready .login5-animate-hero {
    opacity: 1;
    animation: cmsAuthFadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.login5-page.cms-auth-ready .login5-animate-hero-title {
    animation: cmsAuthFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.login5-page.cms-auth-ready .login5-animate-hero-desc {
    animation: cmsAuthFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.login5-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login5-page.cms-auth-ready .login5-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.login5-page.login5-blue.cms-auth-ready .login5-card:hover {
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 24px 48px rgba(0, 0, 0, 0.32),
        0 40px 88px rgba(13, 71, 161, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 56px rgba(30, 136, 229, 0.4);
}

.login5-logo {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login5-page.cms-auth-ready .login5-logo:hover {
    transform: scale(1.08);
}

.login5-hero {
    position: relative;
    overflow: hidden;
}

.login5-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.35;
}

.login5-orb-a {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
    animation: cmsAuthOrbFloat 8s ease-in-out infinite;
}

.login5-orb-b {
    width: 140px;
    height: 140px;
    bottom: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: cmsAuthOrbFloatAlt 9s ease-in-out infinite;
}

.login5-hero-inner {
    position: relative;
    z-index: 1;
}

.login5-btn {
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login5-page.cms-auth-ready .login5-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.login5-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .login5-animate,
    .login5-page.cms-auth-ready .login5-animate,
    .login5-page.cms-auth-ready .login5-animate-card,
    .login5-page.cms-auth-ready .login5-animate-logo,
    .login5-page.cms-auth-ready .login5-animate-title,
    .login5-page.cms-auth-ready .login5-animate-sub,
    .login5-page.cms-auth-ready .login5-animate-alert,
    .login5-page.cms-auth-ready .login5-animate-field,
    .login5-page.cms-auth-ready #username.login5-animate-field,
    .login5-page.cms-auth-ready #password.login5-animate-field,
    .login5-page.cms-auth-ready .login5-animate-btn,
    .login5-page.cms-auth-ready .login5-animate-meta,
    .login5-page.cms-auth-ready .login5-animate-hero,
    .login5-page.cms-auth-ready .login5-animate-hero-title,
    .login5-page.cms-auth-ready .login5-animate-hero-desc,
    .login5-orb-a,
    .login5-orb-b {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .login5-page.cms-auth-ready .login5-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .login5-card { flex-direction: column-reverse; }
    .login5-hero { min-height: 180px; padding: 1.5rem; }

    .login5-page.cms-auth-ready .login5-animate-card {
        animation-name: cmsAuthFadeUp;
    }
}
