/* Registration Form Error Styles */
.form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15) !important;
}

.field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    display: block;
}

.checkbox-wrapper.error {
    color: #ef4444;
}

.checkbox-wrapper.error .checkmark {
    border-color: #ef4444;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.alert ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.alert li {
    margin-bottom: 5px;
}

.alert li:last-child {
    margin-bottom: 0;
}

.alert li::before {
    content: "• ";
    font-weight: bold;
    margin-left: 5px;
}

/* Form validation styles */
.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ef4444;
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 12px;
}

.requirement.valid {
    color: #10b981;
}

.requirement.valid i {
    color: #10b981;
}

.requirement.valid i::before {
    content: "\f00c"; /* fa-check */
}

/* Loading states */
.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced form animations */
.form-group {
    margin-bottom: 20px;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

.toast-warning {
    background: #f59e0b;
}

.toast-info {
    background: #3b82f6;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .field-error {
        font-size: 12px;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}