/* ==========================================================
   B Credit — High-Performance Mobile-First Light Mode Custom Login
   Animated Gradient Background, Glassmorphism, Luxury Aesthetic
========================================================== */

:root {
    --bc-bg-main: #F8FAFC;
    --bc-bg-card: rgba(255, 255, 255, 0.92);
    --bc-border: rgba(226, 232, 240, 0.9);
    --bc-text-primary: #0F172A;
    --bc-text-secondary: #475569;
    --bc-text-muted: #64748B;
    --bc-accent-primary: #0F5A47;
    --bc-accent-hover: #0A4334;
    --bc-accent-teal: #00C9A7;
    --bc-radius-lg: 20px;
    --bc-radius-md: 14px;
}

/* Base Page Layout with Dynamic Animated Mesh Gradient */
.bc-login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: linear-gradient(-45deg, #F0FDF4, #ECFDF5, #EFF6FF, #EEF2FF, #F8FAFC);
    background-size: 400% 400%;
    animation: bcGradientAnimation 16s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--bc-text-primary);
    position: relative;
    overflow: hidden;
}

@keyframes bcGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Ambient Orbs (Background Animation) */
.bc-login-wrapper::before,
.bc-login-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: bcFloatOrb 12s ease-in-out infinite alternate;
}

.bc-login-wrapper::before {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.25) 0%, rgba(15, 90, 71, 0.15) 50%, transparent 80%);
}

.bc-login-wrapper::after {
    bottom: -120px;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 80%);
    animation-delay: -6s;
}

@keyframes bcFloatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-30px, 80px) scale(0.95); }
}

/* Two-column Container for Desktop, Single Column for Mobile */
.bc-login-container {
    width: 100%;
    max-width: 1050px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .bc-login-container {
        grid-template-columns: 1fr 450px;
    }
}

/* Left Hero Branding Section (Visible on Tablet & Desktop) */
.bc-login-hero {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .bc-login-hero {
        display: flex;
    }
}

.bc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: rgba(15, 90, 71, 0.08);
    border: 1px solid rgba(15, 90, 71, 0.2);
    color: #0F5A47;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    width: max-content;
    box-shadow: 0 4px 12px rgba(15, 90, 71, 0.08);
}

.bc-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bc-accent-teal);
    box-shadow: 0 0 10px var(--bc-accent-teal);
}

.bc-hero-title {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0;
    color: #0F172A;
}

.bc-hero-title-accent {
    background: linear-gradient(135deg, #0F5A47 0%, #00C9A7 60%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bc-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bc-text-secondary);
    margin: 0;
    max-width: 480px;
}

.bc-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.bc-feature-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border-radius: var(--bc-radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.8);
    font-size: 0.875rem;
    color: #1E293B;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bc-feature-chip svg {
    width: 18px;
    height: 18px;
    color: #0F5A47;
}

/* Right Side Card / Mobile Full Card */
.bc-card-wrap {
    width: 100%;
    margin: 0 auto;
}

.bc-card {
    background: var(--bc-bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--bc-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 40px -15px rgba(15, 23, 42, 0.1),
        0 8px 16px -6px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0F5A47, #00C9A7, #6366F1);
}

@media (max-width: 480px) {
    .bc-card {
        padding: 2rem 1.35rem;
        border-radius: 16px;
    }
}

/* Brand Header inside Card */
.bc-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

.bc-card-logo-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 90, 71, 0.1), rgba(0, 201, 167, 0.15));
    border: 1.5px solid rgba(0, 201, 167, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0, 201, 167, 0.15);
}

.bc-card-logo-img {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
}

.bc-card-logo-icon {
    width: 32px;
    height: 32px;
    color: #0F5A47;
}

.bc-card-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.01em;
}

.bc-card-subtitle {
    font-size: 0.9rem;
    color: var(--bc-text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Form Customizations & Mobile Zero-Zoom Rule (Single Border Fix) */
.bc-card-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bc-card-form .fi-input-wrp {
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background-color: #FFFFFF !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.bc-card-form .fi-input-wrp:focus-within {
    border-color: #00C9A7 !important;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.25) !important;
}

.bc-card-form input[type="email"],
.bc-card-form input[type="text"],
.bc-card-form input[type="password"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px !important;
    height: 48px !important;
    color: #0F172A !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.bc-card-form label {
    color: #1E293B !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* Primary Submit Button Styling */
.bc-card-form button[type="submit"],
.bc-card-form .fi-btn-primary {
    min-height: 50px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0F5A47, #0A4334) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(15, 90, 71, 0.3) !important;
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
    cursor: pointer !important;
    width: 100% !important;
}

.bc-card-form button[type="submit"]:hover,
.bc-card-form .fi-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(15, 90, 71, 0.45) !important;
    opacity: 0.95 !important;
}

.bc-card-form button[type="submit"]:active,
.bc-card-form .fi-btn-primary:active {
    transform: scale(0.98) !important;
}

/* Credentials Quick Reference Box (Light Theme) */
.bc-credentials-box {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #F0FDF4;
    border: 1px dashed #A7F3D0;
    font-size: 0.82rem;
    color: #166534;
}

.bc-cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.bc-cred-val {
    font-family: monospace;
    font-weight: 700;
    color: #0F5A47;
    background: #DCFCE7;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    user-select: all;
}

/* Footer / Security Badge */
.bc-card-footer {
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--bc-text-muted);
}

.bc-card-footer svg {
    width: 14px;
    height: 14px;
    color: #0F5A47;
}

