/* Base Styles */
html, body {
    font-family: 'Roboto', sans-serif; /* Modern Font */
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Centered container that holds the form */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Styling for form container */
.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Link Styling */
a, .btn-link {
    color: #006bb7;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover, .btn-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Primary Button Styling */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background-color: #155a9b;
        transform: translateY(-2px);
    }

/* Focus States for Form Controls */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Validation Styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Checkbox Darker Border */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Form Control Styling */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: #0053A3;
        box-shadow: 0 0 8px rgba(0, 83, 163, 0.25);
    }

/* Submit Button Styling */
.submit-button {
    background-color: #0053A3;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .submit-button:hover {
        background-color: #003e75;
        transform: translateY(-2px);
    }

/* Center and Padding for Inputs */
input[type="text"], input[type="email"], input[type="password"], textarea {
    padding: 12px;
    margin-top: 5px;
    border-radius: 5px;
}

/* Responsive Design: Handle Smaller Screens */
@media (max-width: 768px) {
    .form-container {
        width: 90%;
        margin: 0 auto;
    }

    .background-image {
        padding: 10px;
    }
}

/* Adjust the content padding for smaller screens */
.content {
    padding-top: 1.1rem;
    padding-left: 15px;
    padding-right: 15px;
}

/* Blazor-specific error boundary */
.blazor-error-boundary::after {
    content: "An error has occurred.";
}
