body {
    background-color: #d8e6ed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.auth-card {
    background-color: #337ab7;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}
.auth-card .form-control {
    width: 100%;
    border-radius: 5px;
    height: 45px;
    padding-left: 15px;
}
.auth-card .btn-primary {
    width: 100%;
    border-radius: 5px;
    background-color: #45a5d1;
    border-color: #45a5d1;
}
.auth-card .btn-primary:hover {
    background-color: #3589b1;
    border-color: #3589b1;
}
.auth-card .logo {
    margin-bottom: 20px;
}
.auth-card .logo img {
    width: 15px;!important;
    height: 15px;!important;
    max-height: 100px;
}
.register-link, .forgot-password-link {
    color: #fff;
}
.register-link:hover, .forgot-password-link:hover {
    color: black;
    text-decoration: none;
}
#error-message, #success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050; /* Ensure it's above other content */
}
.form-group.position-relative {
    position: relative;
}

.form-control .password {
    padding-right: 100px;!important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #333;
}
.custom-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #28a745;
    font-size: 12px;
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.close-toast {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.logo img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .auth-card {
        width: 90%;
        padding: 20px;
    }

    .auth-card .form-control {
        font-size: 14px;
        height: 40px;
    }

    .auth-card .btn-primary {
        font-size: 16px;
        padding: 10px;
    }

    .logo img {
        width: 200px;
    }

    .custom-toast {
        top: 10px;
        right: 10px;
        font-size: 14px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 15px;
    }

    .logo img {
        width: 150px;
    }

    .custom-toast {
        font-size: 12px;
    }
}

@media (max-width: 900px) and (max-height: 800px) {
    .auth-card {
        width: 95%;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-card .form-control {
        font-size: 12px;
        height: 35px;
        padding: 8px;
    }

    .auth-card .btn-primary {
        font-size: 14px;
        padding: 8px;
    }

    .logo img {
        width: 120px;
        max-height: 60px;
    }

    .custom-toast {
        font-size: 10px;
        top: 5px;
        right: 5px;
        min-width: 150px;
    }
}
