/* =========================================================================
   LENTERA FURNITURE - MODERN LOGIN STYLE SHEET
   ========================================================================= */

/* Animated Mesh Background with Glowing Blobs */
.login-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 0% 0%, #0c2310 0%, #153c1b 50%, #112d15 100%);
    overflow: hidden;
    z-index: -2;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #2e7d32;
    top: -10%;
    left: -10%;
    animation: morph-blob 22s infinite alternate ease-in-out;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #e65100;
    bottom: -15%;
    right: -10%;
    animation: morph-blob 28s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #1b5e20;
    top: 40%;
    right: 20%;
    animation: float-blob-center 20s infinite ease-in-out;
}

@keyframes morph-blob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(60px, 40px) scale(1.15) rotate(90deg);
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
    }
    100% {
        transform: translate(-40px, 80px) scale(0.9) rotate(180deg);
        border-radius: 40% 60% 60% 40% / 40% 50% 60% 50%;
    }
}

@keyframes float-blob-center {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-50px, 30px) scale(1.1);
    }
    66% {
        transform: translate(40px, -60px) scale(0.95);
    }
}

/* Split Screen Layout Container */
.login-modern-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Hero Section (Desktop Only) */
.login-hero-panel {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: #ffffff;
    position: relative;
    background-color: rgba(12, 35, 16, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.login-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.1);
}

.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 35, 16, 0.95) 0%, rgba(27, 94, 32, 0.6) 100%);
    z-index: -1;
}

.hero-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-header-brand .brand-logo-img {
    max-width: 60px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero-header-brand h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-middle-content {
    max-width: 540px;
    margin: auto 0;
    animation: fade-slide-in 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title-main {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-title-main span {
    color: #ffd54f;
    background: linear-gradient(90deg, #ffd54f, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-main {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Feature Slider Items */
.hero-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-pill-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.feature-pill-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-pill-item i {
    font-size: 24px;
    color: #ffd54f;
}

.feature-pill-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.feature-pill-item p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.4;
}

.hero-footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Right Form Section */
.login-form-panel {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Login Card Revamp */
.login-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    animation: card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: var(--transition-smooth);
}

.login-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1b5e20, #e65100, #2e7d32);
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-header {
    text-align: center;
    margin-bottom: 35px;
}

.mobile-logo-container {
    display: none;
    margin-bottom: 15px;
}

.login-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f3d13;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-card-header p {
    font-size: 13px;
    color: #556c5a;
    font-weight: 500;
}

/* Modern Floating Label Form Controls */
.form-floating-custom {
    position: relative;
    margin-bottom: 22px;
}

.form-floating-custom input {
    width: 100%;
    height: 56px;
    padding: 18px 45px 6px 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid #d2ded4;
    border-radius: 14px;
    color: #1a251c;
    transition: var(--transition-smooth);
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #627566;
    font-weight: 500;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Focus and Filled state for Floating Labels */
.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label {
    top: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
}

.form-floating-custom input:focus {
    outline: none;
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

/* Form Icons */
.form-floating-custom .input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #7c9381;
    font-size: 18px;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-floating-custom input:focus ~ .input-icon {
    color: #2e7d32;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7c9381;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.password-toggle-btn:hover {
    color: #2e7d32;
}

/* Custom Alert Animation */
.alert-modern {
    animation: alert-slide-down 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    border-radius: 12px;
}

@keyframes alert-slide-down {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Buttons Styling */
.btn-submit-modern {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    height: 52px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
}

.btn-submit-modern:hover {
    background: linear-gradient(135deg, #0f3d13 0%, #1b5e20 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.35);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Modern Biometric Button */
.btn-biometric-modern {
    background: transparent;
    border: 1.5px solid #2e7d32;
    color: #2e7d32;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-biometric-modern:hover {
    background-color: rgba(46, 125, 50, 0.05);
    border-color: #1b5e20;
    color: #1b5e20;
}

.btn-biometric-modern i {
    font-size: 18px;
}

/* Reseller Link Card Section */
.reseller-promo-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1.5px dashed #dbe6dd;
}

.reseller-promo-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #627566;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-reseller-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    color: #065f46;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-reseller-promo:hover {
    background: #dcfce7;
    border-color: #34d399;
    color: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}

.btn-reseller-promo .badge-reseller {
    background: #fef08a;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 10px;
    color: #854d0e;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-reseller-promo i.bi-arrow-right {
    margin-left: auto;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-reseller-promo:hover i.bi-arrow-right {
    transform: translateX(3px);
}

/* Entrance animation triggers */
@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 991px) {
    .login-hero-panel {
        display: none;
    }
    .login-form-panel {
        flex: 1;
        width: 100%;
        min-height: 100vh;
        background: transparent;
    }
    .mobile-logo-container {
        display: block;
        text-align: center;
    }
    .login-card-modern {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .login-form-panel {
        padding: 20px;
    }
    .login-card-modern {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .login-card-header h2 {
        font-size: 22px;
    }
}

/* =========================================================================
   ADVANCED INTERACTIVE ANIMATIONS & PARALLAX
   ========================================================================= */

/* Perspective context for 3D card tilt */
.login-form-panel {
    perspective: 1200px;
}

/* 3D tilt and translation animation for modern card */
.login-card-modern {
    transform: translate3d(calc(var(--move-x, 0) * 8px), calc(var(--move-y, 0) * 8px), 0)
               rotateX(calc(var(--rotate-y, 0) * 1deg))
               rotateY(calc(var(--rotate-x, 0) * -1deg));
    transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Parallax movement for background blobs */
.blob-1 {
    transform: translate3d(calc(var(--move-x, 0) * -25px), calc(var(--move-y, 0) * -25px), 0);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.blob-2 {
    transform: translate3d(calc(var(--move-x, 0) * -35px), calc(var(--move-y, 0) * -35px), 0);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.blob-3 {
    transform: translate3d(calc(var(--move-x, 0) * -15px), calc(var(--move-y, 0) * -15px), 0);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Staggered load animation for hero features list */
.feature-pill-item {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    animation: stagger-slide-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feature-pill-item:nth-child(1) { animation-delay: 0.15s; }
.feature-pill-item:nth-child(2) { animation-delay: 0.28s; }
.feature-pill-item:nth-child(3) { animation-delay: 0.40s; }
.feature-pill-item:nth-child(4) { animation-delay: 0.52s; }

@keyframes stagger-slide-up {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulsing input icon when focus occurs */
.form-floating-custom input:focus ~ .input-icon {
    animation: input-icon-bounce 0.45s ease-in-out;
}

@keyframes input-icon-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

/* Fingerprint Biometric Breathing glow */
.btn-biometric-modern i {
    animation: fingerprint-glow 2.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes fingerprint-glow {
    0%, 100% {
        text-shadow: 0 0 0px rgba(46, 125, 50, 0);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px rgba(46, 125, 50, 0.7);
        transform: scale(1.2);
    }
}

/* Modern Particle system */
.login-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.login-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.4) 0%, rgba(255, 213, 79, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-rise linear infinite;
}

@keyframes particle-rise {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-5vh) translateX(60px) scale(1.5);
        opacity: 0;
    }
}

