.login-box {
    width: 100%;
    max-width: 400px; /* Maximum width */
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 7px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Box shadow for depth */
    min-height: 450px; /* Increased height for the login box */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px); /* Blur effect for glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Slight border to enhance glass effect */
}

.logo {
    display: block;
    margin: 0 auto 1.8rem auto; /* Center the logo */
    max-width: 100px; /* Set logo size to 100px */
    height: auto;
}

/* Glassmorphism effect for form control wrapper */
.form-control-wrapper {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-control-wrapper label {
    position: absolute;
    top: 0.55rem;
    left: 0.45rem;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8); /* Darker text color for better visibility */
    background-color: transparent; /* Fully transparent background */
    padding: 0 0.25rem; /* Padding to prevent overlapping */
    transition: 0.2s ease all;
    pointer-events: none;
    z-index: 1; /* Ensure label is above input */
}

.form-control-wrapper input {
    height: calc(2.5rem + 2px);
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Transparent border for glass effect */
    border-radius: 0.375rem; /* Border radius */
    outline: none; /* Remove default outline */
    background-color: rgba(255, 255, 255, 0.1); /* Fully transparent background with slight tint */
    color: rgba(0, 0, 0, 0.8); /* Darker text color for better visibility */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inner shadow for depth */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-wrapper input:focus-visible {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4); /* Enhanced inner shadow on focus */
    border-color: #28a745; /* Green border on focus */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly more opaque background on focus */
}

.form-control-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.5); /* Slightly lighter border on hover */
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more opaque background on hover */
}

.form-control-wrapper input:focus-visible + label,
.form-control-wrapper input:not(:placeholder-shown) + label {
    top: -1.4rem;
    left: 0.30rem;
    font-size: 0.95rem;
}

.form-check-input:checked {
    background-color: #28a745; /* Green background when checked */
    border-color: #28a745; /* Green border when checked */
}

.form-check-input:focus {
    box-shadow: none; /* Remove blue outline on focus */
}

.text-decoration-none {
    color: black; /* Black color for the link by default */
    border-bottom: 1px solid transparent; /* Invisible border by default */
}

.text-decoration-none:hover,
.text-decoration-none:focus {
    color: black; /* Keep the text color black on hover */
    border-bottom: 2px solid #198754; /* Green border bottom on hover */
    text-decoration: none; /* No underline */
}

/* Custom styles for the "Remember Me" label */
.form-check-label {
    color: black; /* Black color for the "Remember Me" label */
}

/* Custom styles for the "No account" text */
.no-account-text {
    text-align: center;
    margin-top: 1.5rem; /* Margin above the text */
    color: black; /* Black color */
    font-size: 0.875rem; /* Smaller font size */
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"]::-ms-reveal, 
.password-wrapper input[type="password"]::-ms-clear {
    display: none; /* Hide icons in Internet Explorer and Edge */
}

.toggle-password {
    background: none;
    border: none;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    fill: #1b915a;
}

.btn-success.custom-border {
    border: 1px solid rgba(255, 255, 255, 0.3); /* Transparent border for glass effect */
    background-color: #198754; /* Bootstrap's btn-success color */
    color: white; /* Ensure text is visible */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inner shadow for depth */
}

.btn-success.custom-border:hover {
    border-color: rgba(255, 255, 255, 0.5); /* Slightly lighter border on hover */
    background-color: #218838; /* Lighter green color for hover state */
}

.go-back-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it’s on top */
    width: auto;
}

.go-back-link {
    display: flex;
    align-items: center;
    color: #0e482d; /* Change to light text */
    border: 1px solid #0e482d; /* Add black border */
    padding: 5px 10px; /* Add some padding for better clickability */
    border-radius: 5px; /* Slightly round the corners */
    text-decoration: none; /* Remove underline by default */
    transition: background-color 0.3s, color 0.3s; /* Add hover transition */
}

.go-back-link:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
    color: #156f45; /* Change text color on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

.go-back-icon {
    fill: currentColor; /* Inherit color from parent */
}

/* Make SweetAlert responsive */
@media (max-width: 767px) {
    .swal-responsive {
        width: 80% !important; /* Adjust width for small screens */
        max-width: 300px !important; /* Optional: Set a max width */
        top: 10% !important; /* Adjust position for small screens */
        padding: 10px !important; /* Optional: Reduce padding */
    }
}

@media (min-width: 768px) {
    .swal-responsive {
        width: 400px !important; /* Default size for larger screens */
        top: 10% !important; /* Keep top position for larger screens */
    }
}
