/* Centering Login Container */
.login-container {
    background: white;
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 30px;

}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007bff;
}

/* Form field styling */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Button styling */
.login-container button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-container button:hover {
    background: #0056b3;
}

/* Flash Messages */
#flash-messages {
    position: absolute; /* Change from fixed to absolute */
    top: 100px;  /* Adjust top position to avoid overlapping the logo */
    right: 20px;
    z-index: 1000;
    width: 350px;
}

/* Success Message */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

/* Danger/Error Message */
.flash-danger, .flash-warning {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

/* Ensuring All Messages Have Same Display */
.flash-success, .flash-danger, .flash-warning {
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

/* ✅ Right Align Registration Link */
.register-text {
    text-align: right;  /* Aligns text to the right */
    display: block;
    margin-top: 15px; /* Adds spacing */
    font-size: 14px;
}

.register-text a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
}

/* ✅ Responsive Table */
@media (max-width: 768px) {
    .login-container {
        background: white;
        margin-top: 20px;
    }
}