/* Custom Registration Page Styles */

:root {
    --ayurveda-green: #4b7c59;
    --ayurveda-dark-green: #165029;
    --ayurveda-light-green: #8bc34a;
    --ayurveda-cream: #F0EAD6;
    --ayurveda-orange: #e76f2f;
}

/* Enhanced animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-10px) rotate(90deg); 
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.1;
    }
    75% { 
        transform: translateY(-10px) rotate(270deg); 
        opacity: 0.15;
    }
}

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

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form animations */
.glass-effect {
    animation: fadeInScale 0.6s ease-out;
}

.input-group {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }
.input-group:nth-child(3) { animation-delay: 0.3s; }

/* Enhanced input focus effects */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(75, 124, 89, 0.1);
    border-color: var(--ayurveda-orange);
    transform: translateY(-1px);
}

/* Custom radio and checkbox styling */
input[type="radio"], input[type="checkbox"] {
    accent-color: var(--ayurveda-orange);
}

/* Enhanced button effects */
.submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4b7c59 0%, #165029 100%);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(75, 124, 89, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Dropdown custom styling */
.dropdown-custom {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center;
    background-size: 20px;
}

/* Form section visibility */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeInScale 0.3s ease-in-out;
}

/* Loading state */
.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Field validation states */
.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.field-success {
    border-color: #10b981 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    animation: slideInUp 0.3s ease-out;
}

.error-message svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Pulse animation for submit button */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .glass-effect {
        padding: 1.5rem !important;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .pulse-animation {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}
