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

        :root {
            --primary: #0c4248;
            --primary-light: #105a62;
            --primary-dark: #083238;
            --accent: #1a9ba8;
            --text-light: #ffffff;
            --text-muted: #b8d4d7;
            --error: #ef4444;
            --success: #10b981;
            --bg-light: #f8fafb;
            --border: #e2eef0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); */
            background: var(--bg-light);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

               /* ========== Loading ========== */
         #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        #loading-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-container {
            text-align: center;
        }

        /* Spinner Style 1: Circle Spinner */
        .spinner {
            width: 60px;
            height: 60px;
            border: 5px solid rgba(255, 255, 255, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 30px;
        }

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

        /* Spinner Style 2: Dots (uncomment to use instead) */
        .dots-spinner {
            display: none; /* Change to 'flex' to use this spinner */
            gap: 12px;
            margin: 0 auto 30px;
        }

        .dot {
            width: 15px;
            height: 15px;
            background-color: var(--accent);
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .dot:nth-child(1) { animation-delay: -0.32s; }
        .dot:nth-child(2) { animation-delay: -0.16s; }

        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }

        /* Loading Text */
        .loading-text {
            color: var(--primary-dark);
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }

        .loading-subtext {
            color: var(--accent);
            font-size: 14px;
            font-weight: 400;
        }

        /* Animated dots after text */
        .loading-text::after {
            content: '';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {
            0%, 20% { content: ''; }
            40% { content: '.'; }
            60% { content: '..'; }
            80%, 100% { content: '...'; }
        }

        /* Progress bar (optional) */
        .progress-bar {
            width: 200px;
            height: 4px;
            background-color: whitesmoke;
            border-radius: 2px;
            margin: 20px auto 0;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background-color: var(--accent);
            border-radius: 2px;
            animation: progress 2s ease-in-out infinite;
        }

        @keyframes progress {
            0% { width: 0%; transform: translateX(0); }
            50% { width: 70%; }
            100% { width: 100%; transform: translateX(0); }
        }

        #main-content {
            opacity: 0;
            transition: opacity 0.5s ease-in;
        }

        #main-content.visible {
            opacity: 1;
        }

        .auth-container {
            width: 100%;
            max-width: 1000px;
            height: auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(12, 66, 72, 0.3);
        }

        /* Left Side - Branding */
        .auth-branding {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: var(--text-light);
            padding: 50px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: var(--primary);
        }

        .logo-text {
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.5px;
        }

        .branding-content h1 {
            font-size: 36px;
            font-weight: 600;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .branding-content p {
            font-size: 18px;
            line-height: 1.6;
            color: var(--text-muted);
            margin-bottom: 40px;
        }

        .features {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.08);
            padding: 14px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .feature-item:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateX(8px);
        }

        .feature-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .feature-text {
            font-size: 15px;
            color: var(--text-muted);
        }

        /* Right Side - Form */
        .auth-form-container {
            padding: 30px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-header {
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .form-header-content {
            flex: 1;
        }

        .form-header h2 {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 8px;
        }

        .form-header p {
            color: #64748b;
            font-size: 15px;
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-size: 14px;
            font-weight: 500;
            color: var(--primary-dark);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(26, 155, 168, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        /* Account Type Selection */
        .account-type-selector {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .account-type-option {
            position: relative;
        }

        .account-type-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .account-type-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .account-type-option input[type="radio"]:checked + .account-type-label {
            border-color: var(--accent);
            background: rgba(26, 155, 168, 0.05);
        }

        .account-type-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .account-type-name {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 4px;
        }

        .account-type-desc {
            font-size: 12px;
            color: #64748b;
        }

        .btn {
            padding: 14px 24px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(12, 66, 72, 0.2);
        }

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

        .form-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }

        .form-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .form-footer a:hover {
            color: var(--primary);
        }

        .helper-links {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            margin-top: -8px;
        }

        .helper-links a {
            color: var(--accent);
            text-decoration: none;
        }

        .helper-links a:hover {
            text-decoration: underline;
        }

        .errors {
            background: #fef2f2;
            color: var(--error);
            padding: 12px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 16px;
            border-left: 4px solid var(--error);
        }

        .form-group .errors {
            background: transparent;
            padding: 4px 0;
            border: none;
            font-size: 13px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkbox-group label {
            font-size: 14px;
            color: #64748b;
            cursor: pointer;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .auth-container {
                grid-template-columns: 1fr;
                max-width: 500px;
            }

            .auth-branding {
                padding: 40px 30px;
            }

            .branding-content h1 {
                font-size: 28px;
            }

            .auth-form-container {
                padding: 40px 30px;
            }
        }

        /* Page Switcher */
        .page-switcher {
            display: none;
        }

        .page-switcher:checked ~ .auth-container .page-1 {
            display: none;
        }

        .page-switcher:checked ~ .auth-container .page-2 {
            display: flex;
        }

        .page-2 {
            display: none;
        }


        html {
            font-size: 16px;
        }
        
        @media (max-width: 968px) {
            html {
                font-size: 15px;
            }
        }
        
        @media (max-width: 768px) {
            html {
                font-size: 14px;
        }
        }
        @media (max-width: 480px) {
            html {
                font-size: 13px;
            }
        }
        
        @media (max-width: 360px) {
            html {
                font-size: 12px;
            }
        }



        /* ---- Small-screen: hide left branding and show toggle button ---- */
        @media (max-width: 968px) {
          .auth-container {
            grid-template-columns: 1fr;
            max-width: 520px; /* keep your previous smaller width for mobile */
            display: inline-flex;
            flex-direction: column;
          }
        
          /* hide wide branding column visually */
          .auth-branding {
            display: none !important;
          }
        
          /* show the About/branding toggle inside the form header */
            #open-branding-btn {
                display: inline-flex;
            }

            .auth-form-container {
                padding: 40px 30px;
            }

            .branding-content h1 {
                font-size: 28px;
            }
        }


        .btn-home {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-light);
            border: 2px solid var(--border);
            border-radius: 10px;
            color: var(--primary);
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            text-decoration: none;
        }

        .btn-home svg {
            width: 22px;
            height: 22px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .btn-home:hover {
            background: white;
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(12, 66, 72, 0.1);
        }

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

        /* Single column layout for registration pages */
        #register-personal,
        #register-organization {
            grid-template-columns: 1fr;
            max-width: 600px;
        }

        #register-personal .auth-branding,
        #register-organization .auth-branding {
            display: none;
        }

        /* Name fields layout */
        .name-fields-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        @media (max-width: 480px) {
            body {
                padding: 20px;
            }

            .auth-form-container {
                padding: 30px 20px;
            }

            .form-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .form-header-content {
                order: 2;
            }

            .btn-home {
                order: 1;
                align-self: flex-start;
            }

            .form-header h2 {
                font-size: 26px;
            }

            .branding-panel {
                width: 90%;
                padding: 30px 20px;
            }

            .helper-links {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }
            .name-fields-grid {
            display: flex;
            flex-direction: column;
            gap: 16px;
           }
        }

