/* assets/css/style.css */
body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.auth-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Fade-shaded border */
    width: 100%;
    max-width: 500px; /* Max width constraint */
    margin: auto; 
}

/* Style for the required red asterisk */
.form-label.required::after {
    content: " *";
    color: #dc3545; /* Red */
    font-weight: bold;
}

/* Customizing the error highlighting (Red Border and Icon) */
.is-invalid .form-control,
.is-invalid .form-select {
    border-color: #dc3545 !important; /* Bootstrap Red */
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6L6 6v3.2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    color: #dc3545 !important; /* Ensure error text is red */
}

.auth-header {
    margin-bottom: 25px;
    text-align: center;
    color: #007bff;
}

.country-code-select {
    width: 140px; 
    flex-grow: 0; 
}

.invalid-feedback.d-block {
    width: 100%;
}

/* Custom CSS for Floating Alerts */
.floating-alert-container {
    position: fixed;
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    z-index: 1050; /* Ensure it stays above other content (Bootstrap modals are 1040) */
    max-width: 400px; /* Limit the width */
}

/* Optional: Subtle animation for the 'shade of light disappearing' effect */
.alert.fade.show {
    transition: opacity 0.5s ease-out;
}