/* ===== RESET & BASE STYLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
background: linear-gradient(135deg, #cccccc, #ffffff);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 0;
            position: relative;
            overflow: hidden;
        }

        /* ===== ANIMATED BACKGROUND ===== */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
            animation: float 20s ease-in-out infinite;
            z-index: -1;
        }

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

        /* ===== MAIN CONTAINER ===== */
        .register-container {
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            overflow: hidden;
            width: 100%;
            max-width: 1100px;
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            position: relative;
            z-index: 2;
            animation: slideInUp 0.8s ease-out;
            height: calc(100vh - 4rem);
            max-height: 800px;
            

        }

        .register-left .logo {
            display: inline-block;
            text-decoration: none;
            padding: 5px;
            margin-bottom: 10px;
            transition: transform 0.2s ease;
}

/* Optional hover effect */
        .register-left .logo:hover {
            transform: scale(1.05);
        }

/* Style the logo image */
        .register-left .logo img{
            height: 250px;     /* adjust as needed */
            width: auto;      /* maintain aspect ratio */
            object-fit: contain;
            vertical-align: middle;
            border-radius: 8px; /* optional rounded corners */
}


        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== LEFT PANEL ===== */
        .register-left {
background: linear-gradient(135deg, #711c77 0%, #8e44ad 50%, #a21878 100%);
            color: white;
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .register-left::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
            animation: float 15s ease-in-out infinite reverse;
        }

        .register-icon {
            font-size: 5rem;
            margin-bottom: 2rem;
            animation: bounce 2s ease-in-out infinite;
            position: relative;
            z-index: 2;
            background: rgba(255, 255, 255, 0.2);
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .register-left h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 2;
            transition: all 0.5s ease;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .register-left p {
            font-size: 1.1rem;
            opacity: 0.9;
            line-height: 1.6;
            position: relative;
            z-index: 2;
            transition: all 0.5s ease;
            max-width: 400px;
        }

        /* ===== RIGHT PANEL ===== */
        .register-right {
            padding: 2rem;
            position: relative;
            height: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .register-right-content {
            overflow-y: auto;
            padding-right: 1rem;
            flex: 1;
            scrollbar-width: thin;
            scrollbar-color:  #f1f1f1;
        }

        .register-right-content::-webkit-scrollbar {
            width: 6px;
        }

        .register-right-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .register-right-content::-webkit-scrollbar-thumb {
            background: #a21878;
            border-radius: 10px;
        }
        .register-right .logo {
           display: none;
          }

        /* ===== SECTION HEADERS ===== */
        .section-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .section-header h2 {
            font-size: 2rem;
            color: #333;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .section-header p {
            color: #666;
            font-size: 1rem;
        }

        /* ===== FORM STYLES ===== */
        .register-form {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-section {
            background: #f9f9f9;
            padding: 1.5rem;
            border-radius: 16px;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
            border: 1px solid #eee;
        }

        .form-section-title {
            font-size: 1.2rem;
            color: #333;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-section-title i {
            color: #a21878;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .form-group {
            position: relative;
            margin-bottom: 1rem;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #555;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .input-with-icon {
            position: relative;
        }
        
        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 1rem;
            pointer-events: none; /* Optional: prevents accidental clicks */
          }
          
        .input-with-icon .password-toggle {
            pointer-events: auto;
            right: 15px;
            left: auto; /* override inherited 'left' from generic rule */
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 1rem;
            cursor: pointer;
            z-index: 2;
          }
       

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px 12px 45px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: white;
            color: #333;
        }

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

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #a21878;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        /* ===== PASSWORD STYLES ===== */
        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            cursor: pointer;
            transition: color 0.3s ease;
            z-index: 2;
        }

        .password-toggle:hover {
            color: a21878;
        }

        .password-strength {
            margin-top: 0.5rem;
            display: none;
        }

        .strength-bar {
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .strength-fill {
            height: 100%;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .strength-text {
            font-size: 0.8rem;
            font-weight: 500;
        }

        .strength-weak .strength-fill {
            width: 33%;
            background: #a21878;
        }

        .strength-medium .strength-fill {
            width: 66%;
            background: #ffaa00;
        }

        .strength-strong .strength-fill {
            width: 100%;
            background: #00aa00;
        }

        /* ===== TERMS CHECKBOX ===== */
        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 1.5rem 0;
            padding: 1rem;
            background: #f9f9f9;
            border-radius: 10px;
            border: 1px solid #eee;
        }

        .terms-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 0.2rem;
            accent-color: #a21878;
        }

        .terms-checkbox label {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #555;
        }

        .terms-checkbox a {
            color: #a21878;
            text-decoration: none;
            font-weight: 500;
        }

        .terms-checkbox a:hover {
            text-decoration: underline;
        }

        /* ===== BUTTONS ===== */
        .register-btn {
          background: linear-gradient(135deg, #a21878 50%, #a21878 100%);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(255, 107, 53, 0.4);
        }

        .register-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .register-btn:hover::before {
            left: 100%;
        }

        .register-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.5);
        }

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

        .register-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ===== OTP SECTION STYLES ===== */
        .otp-inputs {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin: 2rem 0;
        }

        .otp-input {
            width: 55px;
            height: 60px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            text-align: center;
            font-size: 1.75rem;
            font-weight: bold;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .otp-input:focus {
            outline: none;
            border-color: a21878;
            background: white;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        .otp-input.filled {
            border-color: #2e7d32;
            background: #e8f5e8;
        }

        .otp-input.error {
            border-color: #c62828;
            background: #ffebee;
            animation: shake 0.5s ease-in-out;
        }

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

        .phone-display {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 1rem;
            border-radius: 12px;
            margin: 1.5rem 0;
            font-weight: 600;
            color: #333;
            text-align: center;
            border: 2px solid #e0e0e0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .phone-display i {
            color: #a21878;
        }

        .timer {
            text-align: center;
            font-size: 1.1rem;
            color: #a21878;
            margin: 1.5rem 0;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .timer i {
            animation: pulse 1s infinite;
        }

        .timer.warning {
            color: #a21878;
        }

        .timer.danger {
            color: #c62828;
        }

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

        /* ===== UTILITY STYLES ===== */
        .hidden {
            display: none !important;
        }

        .section-transition {
            animation: fadeInSlide 0.6s ease-out;
        }

        @keyframes fadeInSlide {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .loading {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        }

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

        /* ===== MESSAGE STYLES ===== */
        .error-message, .success-message {
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            display: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .error-message {
            background: #ffebee;
            color: #c62828;
            border-left: 4px solid #c62828;
        }

        .success-message {
            background: #e8f5e8;
            color: #2e7d32;
            border-left: 4px solid #2e7d32;
        }

        .error-message i, .success-message i {
            font-size: 1.25rem;
        }

        /* ===== VALIDATION STYLES ===== */
        .form-group.error input,
        .form-group.error select,
        .form-group.error textarea {
            border-color: #c62828;
            background: #ffebee;
        }

        .form-group.success input,
        .form-group.success select,
        .form-group.success textarea {
            border-color: #2e7d32;
            background: #e8f5e8;
        }

        .validation-message {
            font-size: 0.85rem;
            margin-top: 0.5rem;
            display: none;
            font-weight: 500;
            padding-left: 0.5rem;
        }

        .validation-message.error {
            color: #c62828;
            display: block;
        }

        .validation-message.success {
            color: #2e7d32;
            display: block;
        }

        /* ===== LINKS ===== */
        .login-link {
            text-align: center;
            margin-top: 1.5rem;
            color: #666;
            font-size: 0.95rem;
        }

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

        .login-link a:hover {
            color: a21878;
            text-decoration: underline;
        }

        .back-home {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            z-index: 10;
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 30px;
            backdrop-filter: blur(5px);
        }

        .back-home:hover {
            transform: translateX(-5px);
            background: rgba(255, 255, 255, 0.3);
        }

        .resend-section {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #eee;
        }

        .resend-btn {
            background: none;
            border: none;
            color: a21878;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: underline;
            transition: color 0.3s ease;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .resend-btn:hover {
            color: #a21878;
        }

        .resend-btn:disabled {
            color: #999;
            cursor: not-allowed;
            text-decoration: none;
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 992px) {
            .register-container {
                grid-template-columns: 1fr 1.2fr;
                max-width: 900px;
            }
        }

        @media (max-width: 768px) {
            html, body {
                height: auto;
                min-height: 100%;
                overflow-x: hidden ; /* allow vertical scroll */
                display: block;   /* override flex on body */
                scroll-behavior: smooth;
              }
            .register-container {
                             margin-top: 0%;

                grid-template-columns: 1fr;
                max-width: 500px;
                height: auto;
                max-height: none;
            }

            .register-left {
                padding: 2rem;
                display: none;
            }

            .register-right {
                padding: 1.5rem;
                max-height: 100vh;
                overflow-y: auto;
            }

            .register-right-content {
                overflow-y: visible;
                padding-right: 0;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .back-home {
                display: none;
            }

            body {
                padding: 1rem 0;
            }

            .otp-inputs {
                gap: 0.5rem;
            }

            .otp-input {
                width: 45px;
                height: 50px;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .register-container {
                margin: 0.5rem;
                border-radius: 16px;
            }

            .register-right {
                padding: 1.25rem;
            }

            .form-section {
                padding: 1.25rem;
            }

            .otp-input {
                width: 40px;
                height: 45px;
                font-size: 1.25rem;
            }
            .back-home{
                display: none;
            }
            .register-right .logo {
                display: block;
                margin: 0 auto 5px;
              }
            
              .register-right .logo img {
                height: 150px;     /* slightly smaller on mobile */
                max-width: 100%;   /* prevent overflow */
              }
        }

