/* Reset all margins and paddings */
* {
    margin: 0px;
    padding: 0px;
}

/* Body styling */
body {
    background-color: #b2b8b9;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Container styling */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
}

/* Logo and title styling */
.logo {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #3d477a;
}

/* Heading styling */
h1 {
    margin-bottom: 20px;
    color: #3d477a;
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
}

/* Label styling */
label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    color: #333;
}

/* Input field styling */
input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus effect for the input fields */
input:focus {
    border-color: #3d477a;
    box-shadow: 0 0 5px rgba(61, 71, 122, 0.5);
    outline: none;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Button container styling */
.button-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Submit button styling */
.submit-btn {
    background-color: #3d477a;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Submit button hover effect */
.submit-btn:hover {
    background-color: #2b3b6f;
    transform: scale(1.05);
}

/* Password toggle styling */
.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 30px;
}

.password-toggle .toggle-btn {
    position: absolute;
    top: 50%;
    margin-top: 12px;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1em;
    color: #999;
}

/* Password toggle button hover effect */
.password-toggle .toggle-btn:hover {
    color: #3d477a;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .submit-btn {
        width: 100%;
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3d477a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ALERT POP UP  */

 /* Custom CSS for SweetAlert */
 .swal-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
}

.swal-modal {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Shadow effect */
}

.swal-title {
    color: #e74c3c; /* Title color */
    font-size: 24px; /* Title font size */
    font-weight: bold; /* Bold title */
}

.swal-text {
    color: #333; /* Text color */
    font-size: 18px; /* Text font size */
}

.swal-button--confirm {
    background-color: #3498db; /* Button color */
    border-radius: 5px; /* Button rounded corners */
    color: white; /* Button text color */
}

.swal-button--confirm:hover {
    background-color: #2980b9;
}
