/* General Body and Main Container Styles */
body {
    background: linear-gradient(to bottom, #3357FF, #ffffff, #FF5733); /* Your gradient background */
    min-height: 100vh; /* Ensure it takes full viewport height */
    margin: 0;
    display: flex; /* Make body a flex container */
    flex-direction: column; /* Stack children vertically */
    font-family: Arial, sans-serif;
    color: #333;
}

.signin-main {
    flex-grow: 1; /* Allow main content to grow and push footer down */
    display: flex;
    justify-content: center; /* Horizontally center content */
    align-items: center; /* Vertically center content */
    padding: 20px; /* Padding around the content */
}

/* Sign-in Card Styles */
.signin-container {
    max-width: 450px; /* Limit the max width of the card */
    width: 100%; /* Take full width up to max-width */
    margin: auto; /* Fallback for centering if flexbox isn't enough */
    padding: 20px; /* Internal padding */
}

.signin-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
    padding: 30px;
}

.signin-title {
    font-size: 2.2rem;
    color: #343a40;
    margin-bottom: 30px;
    text-align: center;
}

/* Error Message Styling */
.error-message {
    color: #dc3545; /* Bootstrap-like red for errors */
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

/* Form Group and Inputs */
.form-group {
    margin-bottom: 20px; /* Space between form fields */
}

.form-label {
    display: block; /* Make labels take full width */
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    color: #495057;
    box-sizing: border-box; /* Include padding and border in element's total width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Password Toggle Checkbox */
.password-toggle-group {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.checkbox-input {
    margin-right: 8px; /* Space between checkbox and label */
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Sign-in Button */
.signin-btn {
    width: 100%; /* Full width button */
    padding: 15px;
    background-color: #007bff; /* Primary blue button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    margin-top: 10px; /* Space above the button */
}

.signin-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 576px) { /* Smartphones */
    .signin-main {
        padding: 15px;
    }
    .signin-card {
        padding: 25px;
    }
    .signin-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .form-input,
    .signin-btn {
        padding: 10px;
        font-size: 1rem;
    }
    .checkbox-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) { /* Smaller phones */
    .signin-card {
        padding: 20px;
    }
    .signin-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}