/**
 * Signup Form Styles
 * Mobile-friendly and responsive design
 */

/* Logo and branding */
.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.logo-circle {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(219, 39, 119, 0.8) 0%, rgba(236, 72, 153, 0.6) 50%, rgba(251, 207, 232, 0.4) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.logo-account {
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/contain no-repeat;
}

/* Form sections */
.section-required {
    border-left: 4px solid #dc2626;
}

.section-optional {
    border-left: 4px solid #8b5cf6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-optional:hover {
    background-color: rgba(139, 92, 246, 0.05);
}

/* Modal styles */
.modal-overlay {
    backdrop-filter: blur(2px);
}

.modal-overlay .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Form toggle animation */
#form-content {
    transition: all 0.3s ease;
}

#toggle-form-btn.rotate-90 {
    transform: rotate(90deg);
}

/* Input focus states */
input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Phone validation styles */
#phone-exists-warning {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Paste signup styles */
.paste-signup-section {
    position: relative;
    overflow: hidden;
}

.paste-signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    pointer-events: none;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .logo-container {
        transform: scale(0.7);
    }

    .section-required,
    .section-optional {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0.5rem;
        border-left-width: 3px;
    }

    /* Stack grid items on mobile */
    .grid.grid-cols-1.md\\:grid-cols-2 > div {
        margin-bottom: 0.75rem;
    }

    /* Larger touch targets */
    button, input[type="radio"], input[type="checkbox"] {
        min-height: 44px;
    }

    /* Modal adjustments */
    .modal-overlay > div > div {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* Loading states */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Success/error states */
.form-success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.form-error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

/* Progress indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Toast notifications */
.toast {
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section-required {
        border-left-color: #000;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .section-optional {
        border-left-color: #000;
        background-color: rgba(0, 0, 0, 0.03);
    }
}

/* Print styles */
@media print {
    .modal-overlay,
    button[type="submit"]:not(:disabled) {
        display: none !important;
    }

    .form-signup-section {
        box-shadow: none;
        border: 1px solid #000;
    }
}

















