/* styles.css */

/* Reset & Base */
* {
    box-sizing: border-box;
	margin: 0;
    padding: 0;
}

/* Body Styles - Centering Form */
.login-page {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: scale(1.01);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* Input Fields with Icons */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
}

.input-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border 0.3s, background-color 0.3s;
}

.input-icon input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Error / Success Messages */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.alert.error {
    background-color: #ffe0e0;
    color: #b00020;
    border: 1px solid #f5c2c7;
}

.alert.success {
    background-color: #e0fbe0;
    color: #006400;
    border: 1px solid #9ae69a;
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 1.2rem;
}

.register-link a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Toast Container */
.toast {
    visibility: hidden; /* Hidden by default */
    position: fixed;    /* Fixed position */
    bottom: 20px;       /* Place it at the bottom */
    left: 50%;          /* Center it horizontally */
    transform: translateX(-50%); /* Center it precisely */
    background-color: #333; /* Default background */
    color: white;       /* Text color */
    text-align: center; /* Center the text */
    border-radius: 5px; /* Rounded corners */
    padding: 15px;      /* Padding inside the box */
    font-size: 16px;    /* Text size */
    z-index: 9999;      /* Make sure it's above everything else */
    width: 300px;       /* Set the width */
    opacity: 0;         /* Initially hidden */
    transition: opacity 0.5s ease-in-out; /* Fade in/out effect */
}

/* Success toast (green background) */
.toast.success {
    background-color: #28a745;
}

/* Error toast (red background) */
.toast.error {
    background-color: #dc3545;
}

/* Optional: Info toast (blue background) */
.toast.info {
    background-color: #007bff;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-container h2 {
        font-size: 1.4rem;
    }

    input,
    button {
        font-size: 0.95rem;
    }
}