/* Early Registration Landing Page Styles */

/* Form styling enhancements */
.filled.form-group {
    position: relative;
}

.filled.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--primary);
}

.filled.form-group .form-control {
    padding-left: 45px;
}

.filled.form-group textarea.form-control {
    padding-left: 45px;
    resize: vertical;
    min-height: 80px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert styling */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

/* reCAPTCHA container */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Form validation feedback */
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sw-lg-70 {
        width: 100% !important;
    }
    
    .sw-lg-50 {
        width: 100% !important;
    }
    
    .px-5 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .h6 {
        font-size: 0.9rem !important;
    }
}

/* Loading spinner animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Smooth transitions */
.form-control,
.btn {
    transition: all 0.15s ease-in-out;
}

/* Focus states */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Select dropdown styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Optgroup styling */
optgroup {
    font-weight: bold;
    color: var(--primary);
}

optgroup option {
    font-weight: normal;
    color: var(--body-color);
    padding-left: 1rem;
}

/* Success state styling */
.alert-success .alert-heading {
    color: #0f5132;
    font-weight: 600;
}

.alert-danger .alert-heading {
    color: #842029;
    font-weight: 600;
}

/* Logo adjustments for landing page */
.logo-default {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 3rem;
}

/* Background enhancements */
.fixed-background {
    background: url("../img/background/background-tech.png") no-repeat center center fixed;
    background-size: cover;
}

/* Text shadow for better readability on background */
.text-white {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Form container shadow */
.shadow-deep {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}