/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container for background and main content */
.bg {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
}

/* Styling for forgot password container */
.forgot-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.forgot-container h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.forgot-container form {
    display: flex;
    flex-direction: column;
}

.forgot-container label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.forgot-container input[type="email"] {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.forgot-container input[type="submit"] {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.forgot-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.already_have {
    margin-top: 1rem;
}

.already_have a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
}

.already_have a:hover {
    text-decoration: underline;
}

/* Alert message styling */
.alert {
    display: none; /* Hidden by default */
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    transition: opacity 0.3s ease;
}

.alert.show {
    display: block;
    opacity: 1;
}

.alert.success {
    background-color: #28a745;
}

.alert.error {
    background-color: #dc3545;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black background with opacity */
}
.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}
.modal-header, .modal-footer {
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-align: center;
}
.modal-footer {
    border-top: 1px solid #eee;
    border-bottom: none;
}
.modal-title {
    font-size: 1.5rem;
    margin: 0;
}
.modal-body {
    margin: 20px 0;
}
.modal-footer button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.modal-footer .confirm {
    background-color: #007bff;
    color: #ffffff;
}
.modal-footer .cancel {
    background-color: #6c757d;
    color: #ffffff;
}