/* assets/inilabs/themes/default/glass_login.css */

/* --- General Reset and Body Styling --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling if background elements extend */
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Manrope','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    position: relative;
    background: none !important;
}

.glassmorphism-background {
    position: fixed;
    top: -10px; /* Adjust as needed, e.g., -5px, -10px */
    left: -10px; /* Adjust as needed */
    width: calc(100% + 20px); /* Adjust as needed, e.g., +10px, +20px */
    height: calc(100% + 20px); /* Adjust as needed */

    /* --- Additions/Modifications Start --- */
    /* 1. Set a base background color that loads immediately.
       Choose a dark color that fits your theme, e.g., a dark gray or black.
       This will be visible before the gradient or image loads. */
    background-color: #1c1c1c; /* Example: A very dark gray */

    /* 2. Specify background-image separately.
       The gradient will appear on top of background-color.
       The image will appear between background-color and the gradient. */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/uploads/default/skoolybg.png');

    /* 3. Ensure other background properties are explicitly set if they were part of a shorthand */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* --- Additions/Modifications End --- */

    filter: blur(5px);
    z-index: -1;
    -webkit-filter: blur(5px);
}
/* --- Login Content Wrapper --- */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers children horizontally in a column flex container */
    justify-content: center; /* This centers content vertically if there's enough space */
    padding: 20px;
    max-width: 500px; /* Limits the max width of the entire login block */
    width: 100%;
    min-height: 100%; /* Ensures wrapper takes up available height for vertical centering */
    box-sizing: border-box;
}

/* --- Logo Container Styling --- */
/* Target the div that contains the logo image */
.login-wrapper .col-md-4.col-md-offset-4.marg {
    /* Override Bootstrap's column and offset behavior */
    width: auto !important; /* Let content dictate width or set a max-width */
    float: none !important; /* Remove float */
    margin-left: auto !important; /* Centering with auto margins */
    margin-right: auto !important; /* Centering with auto margins */
    margin-top: 0 !important; /* Remove specific top margin from HTML inline style */
    margin-bottom: 30px !important; /* Space below logo */
    text-align: center !important; /* Ensure any inline content (like image) is centered */
    display: block !important; /* Ensure it behaves as a block for auto margins */
}

/* Logo Image Styling */
.login-wrapper .col-md-4.col-md-offset-4.marg center img {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    display: block !important; /* Make image a block element */
    margin-left: auto !important; /* Center the image itself */
    margin-right: auto !important; /* Center the image itself */
}

/* --- Login Form Box (from $subview) --- */
.form-box {
    position: relative;
    width: 380px; /* Standard width for the form box */
    max-width: 100%; /* Ensure responsiveness on smaller screens */
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin: 0 auto; /* Center the form box itself horizontally */
}

/* Style the header within the form box */
.form-box .header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin: -30px -30px 30px -30px;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Style the form body - remove white-bg to allow transparency */
.form-box .body.white-bg {
    background: none !important;
    padding: 0;
}

/* Input fields for glassmorphism */
.form-box .form-group input.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.form-box .form-group input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-box .form-group input.form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

/* Checkbox and "Forgot Password?" link */
/* Checkbox and "Forgot Password?" link */
.form-box .checkbox {
    display: flex; /* Make the .checkbox container a flex container */
    justify-content: space-between; /* This will push items to the ends */
    align-items: center; /* Vertically align them */
    margin-bottom: 15px; /* Add some space below this row if needed */
}

.form-box .checkbox label {
    color: #fff !important;
    /* Remove 'display: flex;' here, as the parent handles it */
    /* display: flex; */
    align-items: center;
    margin-bottom: 0 !important; /* Remove any default bottom margin from Bootstrap */
}

.form-box .checkbox input[type="checkbox"] {
    margin-right: 8px;
}

/* Ensure the "Forgot Password?" link is styled correctly within the flex container */
.form-box .checkbox span.pull-right {
    /* If pull-right still applies a float, remove it */
    float: none !important;
}

.form-box .checkbox span.pull-right label {
    display: block; /* Ensure the label for forgot password is a block within its span */
    margin-bottom: 0 !important; /* Remove any default bottom margin */
}

.form-box .checkbox span.pull-right label a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Login Button */
.form-box .btn.btn-block {
    /* Default state: Semi-transparent white */
    background: rgba(255, 255, 255, 0.2) !important; /* White with 20% opacity */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Slightly more opaque white border */
    color: #fff !important; /* Text color remains white for contrast */
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 12px;
    border-radius: 20px;
    transition: all 0.3s ease; /* Keep the smooth transition */
    margin-top: 20px;
   
}

.form-box .btn.btn-block:hover {
    /* Hover state: Fully opaque white */
    background: rgba(255, 255, 255, 1) !important; /* Solid white */
    border-color: rgba(255, 255, 255, 1) !important; /* Solid white border */
    color: #333 !important; /* Change text to a darker color for contrast on white background */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important; /* White glow */
}

/* Alerts (validation messages etc.) */
.form-box .alert {
    background: rgba(255, 99, 71, 0.7) !important;
    border: 1px solid rgba(255, 99, 71, 0.9) !important;
    color: #fff !important;
    text-shadow: none !important;
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
}

.form-box .alert-success {
    background: rgba(92, 184, 92, 0.7) !important;
    border: 1px solid rgba(92, 184, 92, 0.9) !important;
}

.form-box .alert .close {
    color: #fff !important;
    opacity: 0.8 !important;
}

.form-box .alert .close:hover {
    opacity: 1 !important;
}

/* Demo Banner Styling (if applicable) */
.login-wrapper .navbar.navbar-default,
.login-wrapper .btn-group {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.login-wrapper .navbar-brand {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: bold;
    text-shadow: none;
}

.login-wrapper .btn-group .btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 5px !important;
    margin: 5px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.login-wrapper .btn-group .btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Slogan Styling */
.slogan {
    color: #fff; /* White color for visibility against the dark background */
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-top: 20px; /* Space above the slogan */
    margin-bottom: 20px; /* Space below the slogan */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional: add a subtle shadow for better readability */
    /* --- Add this line for increased character spacing --- */
    /*letter-spacing: 0.3em; */
    
}

/* Responsive adjustments */
/* No specific media query needed for centering the logo div anymore,
   as the 'auto' margins with flexbox should handle both.
   However, keep the .form-box adjustments for smaller screens. */
@media (max-width: 767px) {
    .form-box {
        width: 95%;
        padding: 20px;
    }
    .form-box .header {
        margin: -20px -20px 20px -20px;
    }
    .login-wrapper {
        padding: 10px;
    }
}

/* UserProfile Menu */
.modern-user-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 250px; /* Adjust as needed */
    background-color: #fff;
}

.user-info {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-details .user-type {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.user-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-actions li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-actions li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #555;
}

.user-actions li a:hover {
    background-color: #f9f9f9;
}

.user-actions .separator {
    border-bottom: 1px solid #f0f0f0;
    margin: 8px 0;
}

.user-actions .logout-link {
    color: #dc3545; /* Example logout color */
}

.user-actions .logout-link i {
    color: #dc3545;
}