/* =========================================
   Enhanced Register Page Styles
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

:root {
    --swappit-blue: #3468c0;
    --swappit-orange: #ffa424;
    --swappit-blue-hover: #1d4ed8;
    --swappit-orange-hover: #ff5722;
    --neutral-dark: #1e293b;
    --neutral-medium: #64748b;
    --neutral-light: #f1f5f9;
    --background-white: #ffffff;
    --shadow-color: rgba(37, 99, 235, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--font-primary);
    position: relative;
    overflow-x: hidden;
}

/* Spline-style Animated Background */
.spline-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--swappit-blue), var(--swappit-orange));
    animation: float 6s ease-in-out infinite;
}

.particle-1 { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 1s; }
.particle-3 { width: 3px; height: 3px; top: 80%; left: 20%; animation-delay: 2s; }
.particle-4 { width: 5px; height: 5px; top: 30%; left: 70%; animation-delay: 3s; }
.particle-5 { width: 4px; height: 4px; top: 70%; left: 30%; animation-delay: 4s; }
.particle-6 { width: 6px; height: 6px; top: 10%; left: 60%; animation-delay: 5s; }
.particle-7 { width: 3px; height: 3px; top: 50%; left: 90%; animation-delay: 6s; }
.particle-8 { width: 5px; height: 5px; top: 90%; left: 50%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(52, 104, 192, 0.1), rgba(255, 164, 36, 0.1));
    animation: floatElement 8s ease-in-out infinite;
}

.element-1 { top: 15%; left: 15%; animation-delay: 0s; }
.element-2 { top: 65%; left: 75%; animation-delay: 2s; }
.element-3 { top: 35%; left: 85%; animation-delay: 4s; }

.element-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(52, 104, 192, 0.2), rgba(255, 164, 36, 0.2));
    animation: pulse 4s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 104, 192, 0.3), transparent);
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-1 { width: 200px; height: 200px; top: 10%; right: 10%; animation-delay: 0s; }
.orb-2 { width: 150px; height: 150px; bottom: 20%; left: 10%; animation-delay: 3s; }
.orb-3 { width: 100px; height: 100px; top: 50%; left: 50%; animation-delay: 6s; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 0.6; }
}

/* Register Container */
.register-container {
    width: 100%;
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.register-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.register-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--swappit-blue), var(--swappit-orange));
    border-radius: 24px 24px 0 0;
}

.register-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Back Button */
.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--neutral-dark);
}

.back-btn:hover {
    background: var(--swappit-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 104, 192, 0.3);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo-3d-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: reflection 3s ease-in-out infinite;
}

.logo-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes reflection {
    0%, 100% { opacity: 0.3; transform: rotate(0deg); }
    50% { opacity: 0.6; transform: rotate(180deg); }
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.2; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.4; transform: translateX(-50%) scale(1.1); }
}

.logo-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.logo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--swappit-orange);
    border-radius: 50%;
    animation: particleOrbit 4s linear infinite;
}

.logo-particle:nth-child(1) { animation-delay: 0s; }
.logo-particle:nth-child(2) { animation-delay: 1.33s; }
.logo-particle:nth-child(3) { animation-delay: 2.66s; }

@keyframes particleOrbit {
    0% { transform: rotate(0deg) translateX(40px) rotate(0deg); opacity: 1; }
    100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); opacity: 0; }
}

/* Titles */
.register-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--swappit-blue), var(--swappit-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-medium);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Role Selector */
.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--neutral-light);
    padding: 8px;
    border-radius: 12px;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.role-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--neutral-medium);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.role-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--swappit-blue), var(--swappit-orange));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.role-btn:hover::before {
    transform: translateX(0);
}

.role-btn.active {
    background: linear-gradient(135deg, var(--swappit-blue), var(--swappit-orange));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 104, 192, 0.3);
    transform: translateY(-2px);
}

.role-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.role-btn:hover i,
.role-btn.active i {
    transform: scale(1.1);
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
}

.input-3d-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.input-3d-wrapper input,
.input-3d-wrapper select,
.input-3d-wrapper textarea {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--neutral-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.input-3d-wrapper input:focus,
.input-3d-wrapper select:focus,
.input-3d-wrapper textarea:focus {
    outline: none;
    border-color: var(--swappit-orange);
    box-shadow: 0 0 0 4px rgba(255, 164, 36, 0.1);
    transform: translateY(-2px);
}

.input-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 104, 192, 0.1), rgba(255, 164, 36, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.input-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--swappit-blue), var(--swappit-orange));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.input-3d-wrapper input:focus ~ .input-highlight,
.input-3d-wrapper select:focus ~ .input-highlight,
.input-3d-wrapper textarea:focus ~ .input-highlight {
    opacity: 1;
}

.input-3d-wrapper input:focus ~ .input-glow,
.input-3d-wrapper select:focus ~ .input-glow,
.input-3d-wrapper textarea:focus ~ .input-glow {
    opacity: 0.3;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-medium);
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-3d-wrapper input:focus ~ .input-icon,
.input-3d-wrapper select:focus ~ .input-icon,
.input-3d-wrapper textarea:focus ~ .input-icon {
    color: var(--swappit-orange);
    transform: translateY(-50%) scale(1.1);
}

.field-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Password Group */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neutral-medium);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--swappit-orange);
    background: rgba(255, 164, 36, 0.1);
}

.eye-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toggle-password:hover .eye-icon {
    transform: scale(1.1);
}

/* Personal User Fields */
.personal-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 10px;
}

/* Business Fields */
.business-fields {
    animation: slideInFromRight 0.5s ease;
    margin-top: 10px;
}

.business-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.business-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hidden Fields */
.hidden {
    display: none !important;
}

/* Register Button */
.register-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--swappit-blue), var(--swappit-orange));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn-3d-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-text {
    font-weight: 600;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 104, 192, 0.3);
}

.register-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.register-btn:hover .btn-glow {
    opacity: 1;
}

/* Additional Options */
.additional-options {
    margin-top: 30px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neutral-light);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: var(--neutral-medium);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-text {
    color: var(--neutral-medium);
    font-size: 0.95rem;
}

.login-link {
    color: var(--swappit-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: var(--swappit-orange);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .register-title {
        font-size: 2rem;
    }
    
    .register-form {
        gap: 20px;
    }
    
    .personal-fields,
    .business-fields {
        gap: 20px;
    }
    
    .business-form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-column {
        gap: 20px;
    }
    
    .role-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-login-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .register-box {
        padding: 20px 15px;
    }
    
    .register-title {
        font-size: 1.8rem;
    }
    
    .register-subtitle {
        font-size: 1rem;
    }
    
    .register-form {
        gap: 18px;
    }
    
    .personal-fields,
    .business-fields {
        gap: 18px;
    }
    
    .business-form-container {
        gap: 18px;
    }
    
    .business-column {
        gap: 18px;
    }
    
    .input-3d-wrapper input,
    .input-3d-wrapper select,
    .input-3d-wrapper textarea {
        padding: 14px 16px 14px 45px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 14px;
    }
    
    .toggle-password {
        right: 14px;
    }
    
    .register-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
} 