/**
 * register-loading.css
 * Zusätzliche Styles für Loading-States im Registrierungsformular
 * VERSION: 1.0.0
 */

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */

#registration-loading-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================================================
   LOADING STATES IN CONTAINERS
   ============================================================================ */

.loading-state {
    animation: pulseIn 0.5s ease;
}

@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-state .spinner-border {
    border-width: 2px;
}

/* ============================================================================
   ERROR STATES
   ============================================================================ */

.error-state {
    animation: shakeIn 0.5s ease;
}

@keyframes shakeIn {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* ============================================================================
   SPINNER CUSTOMIZATION
   ============================================================================ */

/* Bootstrap Spinner Override für bessere Sichtbarkeit */
.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* ============================================================================
   DISABLED STATE FÜR SELECT
   ============================================================================ */

select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================================================
   CHECKBOX WRAPPER FADE-IN
   ============================================================================ */

.checkbox-wrapper {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.checkbox-wrapper:nth-child(1) { animation-delay: 0.05s; }
.checkbox-wrapper:nth-child(2) { animation-delay: 0.1s; }
.checkbox-wrapper:nth-child(3) { animation-delay: 0.15s; }
.checkbox-wrapper:nth-child(4) { animation-delay: 0.2s; }
.checkbox-wrapper:nth-child(5) { animation-delay: 0.25s; }
.checkbox-wrapper:nth-child(6) { animation-delay: 0.3s; }
.checkbox-wrapper:nth-child(7) { animation-delay: 0.35s; }
.checkbox-wrapper:nth-child(8) { animation-delay: 0.4s; }
.checkbox-wrapper:nth-child(9) { animation-delay: 0.45s; }
.checkbox-wrapper:nth-child(10) { animation-delay: 0.5s; }

/* Weitere Checkboxen ohne Verzögerung */
.checkbox-wrapper:nth-child(n+11) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   SUBMIT BUTTON LOADING STATE
   ============================================================================ */

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary .spinner-border {
    vertical-align: middle;
}

/* ============================================================================
   RESPONSIVE ANPASSUNGEN
   ============================================================================ */

@media (max-width: 768px) {
    #registration-loading-overlay h4 {
        font-size: 1.2rem;
    }
    
    #registration-loading-overlay p {
        font-size: 0.9rem;
    }
}