body.modern-login-body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FEFCEF; /* Main cream background from image */
    background-image: none; /* Removed mesh gradient for cleaner earthy look */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    color: #3E3025;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Wrapper to prevent scrolling */
.bg-mesh-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Elegant ambient glows */
.bg-mesh-1, .bg-mesh-2, .bg-mesh-3 {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s infinite ease-in-out alternate;
}

/* Meshes hidden for this specific clean theme */
.bg-mesh-1, .bg-mesh-2, .bg-mesh-3 {
    display: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.05); }
}

/* Premium Light Card */
.login-premium-card {
    background: #FFFFFF; /* Pure white surface like the cards in the image */
    border: 2px solid #3E3025; /* Distinct dark brown border from image */
    border-radius: 16px;
    padding: 3rem 3.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 4px 4px 0px rgba(62, 48, 37, 0.1); /* Subtle solid shadow for depth */
    z-index: 10;
    position: relative;
}

.login-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    /* Removed pure white invert so natural colors show */
}

.logo-placeholder {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #997021 0%, #3E3025 100%);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FEFCEF;
    margin: 0 auto;
    box-shadow: 0 10px 15px -3px rgba(153, 112, 33, 0.3);
}

.login-heading {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #3E3025; /* Dark text */
    letter-spacing: -0.5px;
}

.login-subheading {
    color: #997021; /* Gold muted text */
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* Premium Soft Inputs */
.form-floating > .premium-input {
    background: #FFFFFF;
    border: 1.5px solid #E3E0C9;
    color: #3E3025;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 1rem;
    font-weight: 500;
}

.form-floating > .premium-input:focus {
    background: #FFFFFF;
    border-color: #997021;
    box-shadow: 0 0 0 3px rgba(153, 112, 33, 0.15);
    color: #3E3025;
}

.form-floating > label {
    color: #7A695C;
    font-weight: 500;
}

.form-floating > .premium-input:focus ~ label,
.form-floating > .premium-input:not(:placeholder-shown) ~ label {
    color: #997021;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    font-weight: 600;
}

/* Fix Bootstrap background label overlap issue */
.form-floating > .premium-input ~ label::after {
    background-color: transparent !important;
}

/* Custom Checkbox */
.custom-checkbox .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    background-color: #FEFCEF;
    border: 1.5px solid #E3E0C9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox .form-check-input:checked {
    background-color: #997021;
    border-color: #997021;
}

.custom-checkbox .form-check-label {
    color: #3E3025;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Premium Dark Button (Matches SEARCH and APP DEMO buttons in image) */
.premium-btn {
    background: #3E3025;
    color: #FEFCEF;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-btn:hover {
    transform: translateY(-2px);
    background: #2a2019; /* Slightly darker brown */
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(62, 48, 37, 0.3);
}

/* Custom Alert */
.custom-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ==============================================================
   FULLY RESPONSIVE MEDIA QUERIES (iPad, Mobile, Laptops)
   ============================================================== */

/* Tablet & iPad Portrait (max-width: 992px) */
@media (max-width: 992px) {
    .login-premium-card {
        max-width: 420px;
        padding: 3rem 2.5rem;
    }
}

/* Large Mobile / iPad Mini (max-width: 768px) */
@media (max-width: 768px) {
    .login-premium-card {
        max-width: 400px;
        padding: 2.5rem 2rem;
        margin: 0 auto;
    }
    .login-heading {
        font-size: 1.6rem;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .login-premium-card {
        max-width: 100%;
        padding: 2rem 1.25rem;
        margin: 0;
    }
    .login-heading {
        font-size: 1.4rem;
    }
    .login-logo-img {
        max-height: 50px;
    }
}

/* Laptop Screens / Short Displays (No scroll allowed here) */
@media (max-height: 850px) {
    .login-premium-card {
        padding: 2.5rem 3rem;
    }
    .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    .custom-checkbox.mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* Extremely Short Displays (e.g. 11-inch laptops or dev tools) */
@media (max-height: 650px) {
    .login-premium-card {
        padding: 1.5rem 2rem;
    }
    .login-logo-img {
        max-height: 45px;
        margin-bottom: 0.75rem !important;
    }
    .text-center.mb-5 {
        margin-bottom: 1rem !important;
    }
    .form-floating.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    .custom-checkbox.mb-5 {
        margin-bottom: 1rem !important;
    }
    .login-heading {
        font-size: 1.35rem;
    }
}
