/* ===================================================================
   ADMIN LOGIN PAGE – Game-Changer Split Layout
   =================================================================== */

/* ----- Split layout ----- */
.admin-login-split {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    overflow: hidden;
}

/* ----- Left: Branding panel ----- */
.admin-login-branding {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.admin-login-branding--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(15, 23, 42, 0.6) 100%);
    pointer-events: none;
}

.admin-login-branding--solid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.admin-login-branding-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    animation: admin-login-fade-in-up 0.8s ease-out;
}

@keyframes admin-login-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-login-branding-logo {
    margin-bottom: 2.5rem;
}

.admin-login-branding-logo img {
    max-height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.admin-login-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.admin-login-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Feature highlights – frosted pills */
.admin-login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-login-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: admin-login-feature-pop 0.6s ease-out forwards;
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-login-feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.admin-login-feature-item:nth-child(1) { animation-delay: 0.4s; }
.admin-login-feature-item:nth-child(2) { animation-delay: 0.55s; }
.admin-login-feature-item:nth-child(3) { animation-delay: 0.7s; }

.admin-login-feature-item i {
    font-size: 1.1rem;
    opacity: 0.95;
}

@keyframes admin-login-feature-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative geometric shapes */
.admin-login-branding-deco {
    position: absolute;
    pointer-events: none;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: admin-login-morph 14s ease-in-out infinite;
}

.admin-login-branding-deco--1 {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 260px;
    height: 260px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation-delay: 0s;
}

.admin-login-branding-deco--2 {
    bottom: 1rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: admin-login-morph 10s ease-in-out infinite reverse;
    animation-delay: -2s;
}

@keyframes admin-login-morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* ----- Right: Form panel ----- */
.admin-login-form-panel {
    flex: 0 0 50%;
    min-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
}

.admin-login-form-wrap {
    width: 100%;
    max-width: 400px;
    animation: admin-login-fade-in-up 0.8s ease-out 0.15s both;
}

.admin-login-form-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-login-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Form inputs */
.admin-login-form-card .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-form-card .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    outline: 0;
}

.admin-login-form-card .form-group:focus-within .bi-person,
.admin-login-form-card .form-group:focus-within .bi-lock,
.admin-login-form-card .form-group:focus-within .bi-envelope {
    color: #3b82f6 !important;
}

/* Submit button */
.admin-login-form-card #admin-login-btn,
.admin-login-form-card .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-form-card #admin-login-btn:hover:not(:disabled),
.admin-login-form-card .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.admin-login-form-card #admin-login-btn:active:not(:disabled),
.admin-login-form-card .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Links */
.admin-login-form-card .form-login .text-center a,
.admin-login-form-card .forget-form .text-center a {
    color: #3b82f6;
    font-weight: 500;
    transition: color 0.2s ease;
}

.admin-login-form-card .form-login .text-center a:hover,
.admin-login-form-card .forget-form .text-center a:hover {
    color: #1d4ed8;
}

/* Login as demo admin – prominent link */
.admin-login-demo-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af !important;
    background: rgba(37, 99, 235, 0.1);
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    border-radius: 0.75rem;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-login-demo-admin-link:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}

/* Language dropdown */
.admin-login-form-card .nav-item.dropdown .dropdown-toggle {
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s ease;
}

.admin-login-form-card .nav-item.dropdown .dropdown-toggle:hover {
    border-color: #3b82f6;
}

.admin-login-toggle-pwd {
    cursor: pointer;
}

.admin-login-form-card .form-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.admin-login-form-card #otp-limit-warning {
    border-radius: 0.75rem;
}

/* Success animation */
.admin-login-form-card.success-animation {
    animation: admin-login-success-pulse 0.5s ease;
}

@keyframes admin-login-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ----- Responsive: stack on mobile ----- */
@media (max-width: 991.98px) {
    .admin-login-split {
        flex-direction: column;
    }

    .admin-login-branding {
        min-height: 220px;
        padding: 2rem 1.5rem;
    }

    .admin-login-branding-inner {
        max-width: 100%;
        text-align: center;
    }

    .admin-login-branding-logo {
        margin-bottom: 1.25rem;
    }

    .admin-login-headline {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .admin-login-tagline {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .admin-login-features {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .admin-login-feature-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }

    .admin-login-branding-deco--1 {
        width: 120px;
        height: 120px;
        bottom: -0.75rem;
        right: 50%;
        transform: translateX(50%);
    }

    .admin-login-branding-deco--2 {
        display: none;
    }

    .admin-login-form-panel {
        flex: 1;
        min-width: 0;
        padding: 2rem 1.5rem;
    }

    .admin-login-form-wrap {
        max-width: 100%;
    }

    .admin-login-form-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .admin-login-branding {
        min-height: 180px;
    }

    .admin-login-headline {
        font-size: 1.5rem;
    }

    .admin-login-form-card .form-control {
        font-size: 1rem;
    }
}
