/* ANY APPLICABLE GLOBAL APP CSS SITS IN HERE */

/* generic */
.active {
    color: #333 !important;
    font-weight: bold !important;
    border-top: 2px solid var(--border-gold) !important;
    border-bottom: 2px solid var(--border-gold) !important;
    background-color: var(--dark-light-grey) !important;
}

.btn-xs {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    border-radius: 0.2rem !important;
}

/* Auth */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #999;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5ee;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .social-auth {
        flex-direction: column;
    }
}

.btn-social {
    flex: 1;
    border: 2px solid #e1e5ee;
    border-radius: 12px;
    padding: 0.8rem;
    background: white;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: var(--stream-blue);
    background: #f8f9ff;
}

* .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 9999;
}

/* Auth */

/* Message alerts */
.message {
    animation: fadeInUp 0.5s ease-out;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.2rem 1.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}

.alert-success::before {
    background: var(--stream-gold);
}

.alert-danger::before {
    background: var(--stream-blue);
}

/* Password strength meter styles */
.strength-meter {
    height: 6px;
    background: #e1e5ee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* Step indicator styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e1e5ee;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e1e5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--stream-blue);
    border-color: var(--stream-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--stream-blue);
    font-weight: 600;
}

/* Validation feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Loading animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Focus styles for accessibility */
.form-floating input:focus-visible {
    outline: 2px solid var(--stream-blue);
    outline-offset: 2px;
}

/* colors */
.text-stream-blue {
    color: var(--stream-blue)
}

.text-stream-gold {
    color: var(--stream-gold)
}

.stream-blue-bg {
    color: var(--stream-blue)
}

.stream-gold-bg {
    color: var(--stream-gold)
}

/* global overlay  */
.global-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body>.global-overlay {
    position: fixed;
}

.global-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.global-overlay .loading-message {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

/* /global overlay */

/* Select2 CSS fixes */
.select2-selection__rendered {
    line-height: 2.6em !important;
}

.select2-container .select2-selection--single {
    height: 2.6em !important;
}

.select2-selection__arrow {
    height: 2.6em !important;
}

/* Default border to match Bootstrap form controls */
.select2-container .select2-selection--single {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem; 
    padding: 0rem 0rem; 
}

/* Outline and shadow on focus to match Bootstrap */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single .select2-selection__rendered:focus {
    border-color: #80bdff !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
}

/* Adjust arrow position */
.select2-selection__arrow {
    height: 100% !important;
    top: 0;
    right: 0; 
}

/* /Select2 CSS fixes */
