* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }

        /* ===== 3D ANIMATED BACKGROUND (FULL SCREEN) ===== */
        .animated-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: hidden;
        }

        /* 3D Rotating Cube with Medical Icons */
        .cube-container {
            position: absolute;
            left: 12%;
            top: 50%;
            transform: translateY(-50%);
            width: 300px;
            height: 300px;
            perspective: 1200px;
        }

        .cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: rotateCube 20s infinite linear;
        }

        @keyframes rotateCube {
            from { transform: rotateX(0deg) rotateY(0deg); }
            to { transform: rotateX(360deg) rotateY(360deg); }
        }

        .cube-face {
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            color: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
        }

        .cube-face.front  { transform: translateZ(150px); }
        .cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
        .cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
        .cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }
        .cube-face.top    { transform: rotateX(90deg) translateZ(150px); }
        .cube-face.bottom { transform: rotateX(-90deg) translateZ(150px); }

        /* Orbiting particles */
        .orbit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: rotate 15s linear infinite;
        }

        @keyframes rotate {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .orbit-particle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        }

        /* Floating particles */
        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            animation: float 10s infinite ease-in-out;
        }

        @keyframes float {
            0%, 100% {
                transform: translate(0, 0);
                opacity: 0;
            }
            10%, 90% {
                opacity: 1;
            }
            50% {
                transform: translate(120px, -350px);
            }
        }

        /* Medical icons floating */
        .medical-icon {
            position: absolute;
            font-size: 50px;
            color: rgba(255, 255, 255, 0.12);
            animation: floatIcon 25s infinite ease-in-out;
        }

        @keyframes floatIcon {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-70px) rotate(180deg); }
        }

        /* Branding */
        .branding {
            position: absolute;
            top: 40px;
            left: 60px;
            z-index: 2;
        }

        .branding h1 {
            color: white;
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 10px;
            text-shadow: 0 4px 20px rgba(0,0,0,0.3);
            opacity: 0.9;
        }

        .branding p {
            color: rgba(255, 255, 255, 0.85);
            font-size: 18px;
            font-weight: 300;
        }

        /* ===== FLOATING SIGNUP FORM (OVERLAPPING) ===== */
        .form-container {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 40px 80px 40px 40px;
        }

        .signup-card {
            width: 100%;
            max-width: 520px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5);
            padding: 40px;
            animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: right center;
            max-height: 95vh;
            overflow-y: auto;
        }

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

        /* Custom scrollbar */
        .signup-card::-webkit-scrollbar {
            width: 6px;
        }

        .signup-card::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .signup-card::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 10px;
        }

        .signup-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo-badge {
            display: inline-block;
            padding: 8px 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 20px;
            color: white;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 18px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .signup-header h2 {
            font-size: 26px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .signup-header p {
            color: #6b7280;
            font-size: 13px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-label {
            font-weight: 600;
            color: #374151;
            margin-bottom: 7px;
            display: block;
            font-size: 12px;
        }

        .form-label .required {
            color: #ef4444;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }

        .form-control, .form-select {
            height: 46px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 0 16px 0 42px;
            font-size: 13px;
            transition: all 0.3s ease;
            width: 100%;
            background: #f9fafb;
        }

        .form-select {
            padding-left: 16px;
        }

        .form-control:focus, .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            outline: none;
            background: white;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .password-toggle:hover {
            color: #667eea;
        }

        .password-strength {
            margin-top: 6px;
            height: 3px;
            background: #e5e7eb;
            border-radius: 2px;
            overflow: hidden;
        }

        .password-strength-bar {
            height: 100%;
            width: 0;
            transition: all 0.3s ease;
        }

        .password-strength-bar.weak {
            width: 33%;
            background: #ef4444;
        }

        .password-strength-bar.medium {
            width: 66%;
            background: #f59e0b;
        }

        .password-strength-bar.strong {
            width: 100%;
            background: #10b981;
        }

        .password-hint {
            font-size: 11px;
            margin-top: 4px;
            color: #6b7280;
        }

        .form-check {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .form-check-input {
            width: 17px;
            height: 17px;
            border: 2px solid #e5e7eb;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 10px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .form-check-label {
            font-size: 12px;
            color: #6b7280;
            cursor: pointer;
            line-height: 1.4;
        }

        .form-check-label a {
            color: #667eea;
            text-decoration: none;
        }

        .form-check-label a:hover {
            text-decoration: underline;
        }

        .btn-signup {
            width: 100%;
            height: 48px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            margin-bottom: 18px;
        }

        .btn-signup:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
        }

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

        .btn-signup:active {
            transform: translateY(0);
        }

        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 20px 0;
            color: #9ca3af;
            font-size: 12px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e5e7eb;
        }

        .divider span {
            padding: 0 12px;
        }

        .login-link {
            text-align: center;
        }

        .login-link p {
            color: #6b7280;
            font-size: 13px;
            margin: 0;
        }

        .login-link a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .login-link a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        .alert {
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 18px;
            font-size: 13px;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .cube-container {
                display: none;
            }
            .form-container {
                justify-content: center;
                padding: 40px 20px;
            }
        }

        @media (max-width: 576px) {
            .branding {
                left: 20px;
                top: 20px;
            }
            .branding h1 {
                font-size: 32px;
            }
            .signup-card {
                padding: 28px 22px;
            }
        }