/* Login Page Custom Modern Styling */

/* Background with premium modern gradient + image overlay */
.box-general.page-auth {
    background: #0b1e36; /* fallback color */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(15, 78, 153, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(29, 114, 214, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, rgba(7, 33, 70, 0.85) 0%, rgba(15, 78, 153, 0.75) 100%), 
        url('../images/auth_bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

/* Soft glowing blobs using pseudo-elements for an organic, modern feel */
.box-general.page-auth::before,
.box-general.page-auth::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.box-general.page-auth::before {
    background: #0f4e99;
    top: -100px;
    left: -100px;
    animation: floatBlob1 25s infinite alternate ease-in-out;
}

.box-general.page-auth::after {
    background: #1d72d6;
    bottom: -150px;
    right: -100px;
    animation: floatBlob2 30s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1.2); }
    100% { transform: translate(-100px, -60px) scale(0.8); }
}

/* Make sure the form is above the glowing blobs */
.page-auth .box-form-auth {
    z-index: 1;
    border-radius: 16px !important; /* Premium rounded corners */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important; /* Soft, deep shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Form logo header area styling */
.page-auth .box-form-auth .logo {
    background: linear-gradient(135deg, #458924 0%, #295415 100%) !important; /* Premium matching green gradient header */
    padding: 24px 15px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-auth .box-form-auth .logo img {
    max-height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Form body container */
.page-auth .box-form-auth .form-wrap {
    padding: 30px 35px 40px 35px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Elegant styling for form fields and labels */
.page-auth .box-form-auth .title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 25px !important;
}

.page-auth .box-form-auth .group label {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px !important;
}

.page-auth .box-form-auth .group input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.page-auth .box-form-auth .group input:focus {
    border-color: #0f4e99 !important;
    box-shadow: 0 0 0 3px rgba(15, 78, 153, 0.15) !important;
}

.page-auth .box-form-auth .btn-blue {
    background: linear-gradient(135deg, #0f4e99 0%, #0c3e7a 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(15, 78, 153, 0.2), 0 2px 4px -1px rgba(15, 78, 153, 0.1) !important;
    transition: all 0.2s ease !important;
}

.page-auth .box-form-auth .btn-blue:hover {
    background: linear-gradient(135deg, #135cb3 0%, #0f4e99 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(15, 78, 153, 0.3), 0 4px 6px -2px rgba(15, 78, 153, 0.05) !important;
    transition: all 0.2s ease !important;
}

.page-auth .box-form-auth .btn-blue:active {
    transform: translateY(0);
}

/* Sidebar Menu Custom Modern Styling */
.box-general > .sidebar {
    background: linear-gradient(180deg, #0f4e99 0%, #072a54 100%) !important;
}

/* Sidebar header area (make it transparent so gradient is continuous) */
.sidebar > .header {
    background-color: transparent !important;
}

/* Align active tab indicator colors with the new blue theme */
.sidebar .menu-wrap > ul > li.active > a {
    color: #0f4e99 !important; /* Active text color is blue */
}

/* Active tab top/bottom curved cutouts matching the background */
.sidebar .menu-wrap > ul > li.active > a::before,
.sidebar .menu-wrap > ul > li.active > a::after {
    background-color: #0c4382 !important; /* Mid-tone blue that seamlessly blends with the gradient */
}

/* Header Logo Area Styling (matching the sidebar blue pattern) */
.box-general > .header .logo {
    background: linear-gradient(180deg, #0f4e99 0%, #0d468a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Perfect horizontal and vertical centering of the logo image */
.box-general > .header .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

.box-general > .header .logo a img {
    display: block !important;
    max-height: 70% !important; /* Prevents overflow and centers nicely */
    width: auto !important;
}
