/* MIND FLOW REGISTER DESIGN - ORGANIC THEME */
:root {
    /* Mind Flow Color Palette */
    --flow-sage: #10b981;
    --flow-forest: #059669;
    --flow-blue: #3b82f6;
    --flow-sky: #0ea5e9;
    --flow-purple: #8b5cf6;
    --flow-lavender: #a78bfa;
    --flow-mint: #6ee7b7;
    --flow-surface: #f0fdf4;
    --flow-text: #1f2937;
    --flow-muted: #6b7280;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #d1fae5 100%);
    color: var(--flow-text);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Organic Flow Background */
.flow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.flow-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--flow-sage), var(--flow-mint));
    animation: organicFlow 30s ease-in-out infinite;
    opacity: 0.06;
}

@keyframes organicFlow {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 50%;
    }
    25% { 
        transform: translate(60px, -40px) scale(1.3) rotate(90deg); 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% { 
        transform: translate(-30px, 50px) scale(0.7) rotate(180deg); 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    75% { 
        transform: translate(40px, -30px) scale(1.2) rotate(270deg); 
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
}

/* Register Container */
.register-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow: 
        0 25px 50px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(110, 231, 183, 0.06), transparent);
    animation: flowRotate 20s linear infinite;
}

@keyframes flowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Organic Form Elements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 500;
    color: var(--flow-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-input:focus {
    border-color: var(--flow-sage);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.1),
        0 15px 35px rgba(16, 185, 129, 0.15);
    border-radius: 24px;
}

.form-input::placeholder {
    color: var(--flow-muted);
    font-weight: 400;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, var(--flow-sage));
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Enhanced Button */
.btn-register {
    width: 100%;
    padding: 1.3rem 2rem;
    background: linear-gradient(135deg, var(--flow-sage) 0%, var(--flow-blue) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-register::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.6s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 45px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}

.btn-register:active {
    transform: translateY(-1px) scale(0.98);
}

/* Loading State */
.btn-loading {
    background: linear-gradient(135deg, var(--flow-muted), #9ca3af) !important;
    cursor: not-allowed;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, var(--flow-sage), var(--flow-blue));
    border-color: var(--flow-sage);
    transform: scale(1.05);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--flow-forest);
}

/* Floating Elements */
.floating-brain {
    position: absolute;
    color: rgba(16, 185, 129, 0.08);
    font-size: 3rem;
    animation: float-brain 35s infinite ease-in-out;
}

.floating-brain:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.floating-brain:nth-child(2) { top: 25%; right: 15%; animation-delay: 8s; }
.floating-brain:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 16s; }
.floating-brain:nth-child(4) { top: 60%; right: 25%; animation-delay: 24s; }

@keyframes float-brain {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.08;
    }
    25% { 
        transform: translateY(-50px) rotate(90deg) scale(1.3); 
        opacity: 0.12;
    }
    50% { 
        transform: translateY(30px) rotate(180deg) scale(0.7); 
        opacity: 0.06;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg) scale(1.1); 
        opacity: 0.10;
    }
}
