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

body, html {
    height: 100%;
    width: 100%;
    min-width: 360px;
    font-family: 'Geist', sans-serif;
    background: url('/views/static/img/BaryonsBackgroundLarge.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 100%;
}

.login-box {
    background-color: rgba(255, 255, 255, 1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    min-width: 250px;
    width: 100%;
    text-align: left;
}

.login-box h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

.login-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.error-message {
    color: #d9534f;
    /* Bootstrap danger color for error */
    background-color: #f8d7da;
    /* Light red background */
    border: 1px solid #f5c6cb;
    /* Slightly darker red border */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
    /* Align the text to the left */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    display: block;
    /* Ensures each input is on its own line */
    width: 100%;
    /* Full width, adjust as desired */
    padding: 16px;
    /* Top/bottom padding, no left/right so the underline is flush */
    margin-bottom: 16px;
    /* Space below each input */
    border: none;
    /* Remove default border */
    border-bottom: 1px solid #ccc;
    /* Underline */
    background: #f5f5f5;
    /* No background so it appears minimal */
    font-size: 1rem;
    /* Adjust text size */
    color: #333;
    /* Text color */
    outline: none;
    /* Remove outline on focus (handled by border) */
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    border-color: #5fb8d9;
    /* Change the underline color on focus */
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group select::placeholder {
    color: #999;
    /* Placeholder text color */
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Container for the checkbox and label text */
.custom-checkbox {
    display: inline-flex;
    /* Lay out items side by side */
    align-items: center;
    /* Vertically center checkbox and text */
    cursor: pointer;
    /* Make entire label clickable */
    font-family: sans-serif;
    /* Example font, adjust as needed */
    padding-bottom: 15px;
}

/* Hide the default checkbox input, but keep it in the document for accessibility */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    /* Take it out of normal flow */
    opacity: 0;
    /* Make it invisible */
    cursor: pointer;
    /* Maintain pointer style */
}

/* The custom box to replace the default checkbox */
.custom-checkbox .checkmark {
    width: 20px;
    /* Size of the box */
    height: 20px;
    background-color: #fff;
    /* Initial background */
    border: 2px solid #4AA9D9;
    /* Border color matching the “checked” color */
    border-radius: 3px;
    /* Slightly rounded corners */
    margin-right: 8px;
    /* Space between box and label text */
    position: relative;
    /* So we can position the checkmark pseudo-element */
    transition: background-color 0.3s ease;
}

/* The checkmark (tick) shape, initially hidden */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    /* Hidden until the box is checked */
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    /* Creates the tick shape */
    transform: rotate(45deg);
}

/* When the checkbox is checked, fill the box and show the checkmark */
.custom-checkbox input[type="checkbox"]:checked~.checkmark {
    background-color: #4AA9D9;
}

.custom-checkbox input[type="checkbox"]:checked~.checkmark::after {
    display: block;
}

.btn {
    display: inline-block;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
}

.login {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5fb8d9;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.login:hover {
    background-color: #349dc3;
}

.signup-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.signup-link a {
    color: #666;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Media Queries for Mobile Responsive Design */
@media (max-width: 768px) {
    body,
        html {
                height: 100%;
                font-family: 'Geist', sans-serif;
                background: url('/views/static/img/BaryonsBackgroundLarge.jpg') no-repeat center center fixed;
                background-size: cover;
            }
    
    .container {
        padding: 20px;
        max-width: 420px;
        min-width: 300px;
        height: 100%;
    }

    .login-box {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .login-box img {
        max-width: 100%;
        min-width: 100px;
    }

    .login-box h2 {
        font-size: 2rem;
        font-weight: 300;
    }

    .login-box p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        font-size: 0.9rem;
    }

    .btn.login {
        font-size: 0.9rem;
        padding: 10px;
    }

    .signup-link {
        font-size: 0.8rem;
    }
}