:root {
    /* Color Palette */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-theme-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-text: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;

    /* header */
    --header-h: 72px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
  }
  
  /* Loading Overlay */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .loading-spinner {
    text-align: center;
    color: white;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Header */
  .header-section {
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: #000;
    z-index: 100;
    border-bottom: 1px solid #0b3aa8; 
  }
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: black;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;

}
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 1rem 0; */
    height: var(--header-h);
    padding: 0;                        /* remove vertical padding so logo can fill */
  }

    .brand { display:flex; align-items:center; height: 100%; }
    .brand-logo{
        height: 100px;
        width: auto;
        display: block;
        object-fit: contain;
        image-rendering: -webkit-optimize-contrast;
        filter: none;
        margin-left: -75px;                         /* ensure colors aren’t dimmed */
    }

    /* Remove old logo container visuals if they still exist */
    .logo-container{ background: none; box-shadow:none; width:auto; height:auto; }

    /* Responsive header heights */
    @media (min-width: 1200px){ :root{ --header-h: 88px; } }  /* large screens */
    @media (max-width: 767.98px){ :root{ --header-h: 60px; } }/* mobile */
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* .logo-container {
    width: 50px;
    height: 20px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
  } */
  /* Logo Fix */
/* .logo-container {
    width: auto;         
    height: auto;
    background: none;    
    box-shadow: none;    
  } */
  
  .logo {
    max-height: 50px;    /* adjust to fit navbar */
    width: auto;         /* keep aspect ratio */
    display: block;
  }
  
  .logo-img {
    width: 10px;
    height: 10px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
  
  .brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
  }
  
  .header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .login-link {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
  }
  
  .login-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }


  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;   /* push bubbles above overlay */
    pointer-events: none; /* so they don't block clicks */
  }
  
  .hero-section::before {
    z-index: 1;   /* overlay is behind bubbles */
  }
  

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
  
  /* Hero Section */
  .hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gradient-theme-color);
  }
  
  .hero-section .container {
    position: relative;
    z-index: 3;
  }
  
  .hero-content {
    color: white;
    padding: 2rem 0;
  }
  
  .welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
  }
  
  .features-preview {
    display: grid;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
  }
  
  .feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  .feature-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .feature-text p {
    opacity: 0.8;
    margin: 0;
  }
  
  /* Signup Card */
  .signup-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeInRight 0.8s ease-out;
    position: sticky;
    top: 2rem;
    margin-right: -80px;
  }
  
  .glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
  }

  .card-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .card-subtitle {
    color: white;
    font-size: 1.1rem;
    margin: 0;
  }
  
  /* Radio Group */
  .user-type-section {
    margin-bottom: 2rem;
  }
  
  .radio-group {
    display: grid;
    gap: 1rem;
  }
  
  .radio-option {
    position: relative;
  }
  
  .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
  }
  
  .radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition-base);
  }
  
  .radio-option:hover .radio-label::before,
  .radio-option input:checked + .radio-label::before {
    left: 0;
  }

  .radio-option:hover .radio-label {
    border-color: var(--primary-color); /* your theme blue */
  }
  
  
  .radio-option input:checked + .radio-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }
  
  .radio-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: var(--transition-base);
  }
  
  .radio-option input:checked + .radio-label .radio-icon {
    background: var(--gradient-primary);
    color: white;
  }
  
  .radio-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
  }
  
  .radio-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
  }
  
  .radio-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: var(--transition-base);
    color: transparent;
  }
  
  .radio-option input:checked + .radio-label .radio-check {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
  }
  
  /* Email Section */
  .email-section {
    margin-bottom: 2rem;
  }
  
  .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }
  
  .input-group {
    position: relative;
  }
  
  .form-control {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }
  
  .input-group-append {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .input-group-text {
    background: none;
    border: none;
    color: var(--text-light);
  }
  
  /* Buttons */
  .btn-primary-custom {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .btn-primary-custom:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-icon {
    transition: var(--transition-base);
  }
  
  .btn-primary-custom:hover .btn-icon {
    transform: translateX(4px);
  }
  
  .signin-link-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
  }
  
  .signin-link {
    /* color: var(--primary-color); */
    color: navy;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
  }
  
  .signin-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
  }
  
  /* Modal Styles */
  .modern-modal {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
  }
  
  .modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
  }
  
  .modal-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .modal-title-section i {
    font-size: 1.25rem;
  }
  
  .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
  }
  
  .btn-close:hover {
    opacity: 1;
  }
  
  /* OTP Modal */
  .verification-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
  }
  
  .verification-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }
  
  .email-highlight {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .otp-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .otp-box {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition-base);
    background: var(--bg-primary);
  }
  
  .otp-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }
  
  .otp-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0.5rem;
  }
  
  .error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
  }
  
  .btn-verify {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  
  .btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  /* Registration Forms */
  .profile-section {
    margin-bottom: 2rem;
  }
  
  .profile-upload-container {
    position: relative;
    display: inline-block;
  }
  
  .profile-upload-label {
    display: block;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    transition: var(--transition-base);
  }
  
  .profile-upload-label:hover {
    border-color: var(--primary-color);
  }
  
  .profile-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
  }
  
  .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    font-size: 0.875rem;
    gap: 0.25rem;
  }
  
  .profile-upload-label:hover .upload-overlay {
    opacity: 1;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
  }
  
  .form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
    cursor: pointer;
  }
  
  .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }
  
  .btn-register {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
  }
  
  .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .header-nav {
      gap: 1rem;
    }
    
    .nav-link {
      font-size: 0.875rem;
    }
    
    .hero-section {
      padding: 2rem 0;
    }
    
    .signup-card {
      padding: 1.5rem;
      margin-top: 2rem;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .features-preview {
      gap: 1rem;
    }
    
    .feature-item {
      padding: 1rem;
    }
    
    .feature-icon {
      width: 50px;
      height: 50px;
      font-size: 1.25rem;
    }
    
    .otp-input-container {
      gap: 0.25rem;
    }
    
    .otp-box {
      width: 45px;
      height: 55px;
      font-size: 1.25rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-description {
      font-size: 1rem;
    }
    
    .signup-card {
      padding: 1rem;
      margin-right: 0px;
    }
    
    .card-title {
      font-size: 1.5rem;
    }
    
    .feature-item {
      flex-direction: column;
      text-align: center;
    }
    .brand-logo{
        height: 80px;
        margin-left: 0px;
    }
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-md);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }

/* Keep 3-per-row grid (match your existing breakpoints) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}
@media (max-width: 992px){ .form-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px){ .form-grid { grid-template-columns: 1fr; } }

/* Compact height like your previous UI */
.form-control.compact { height: 40px; padding: .55rem .875rem; font-size: .95rem; }
.form-select.compact { height: 40px; padding: .55rem .875rem; font-size: .95rem; }

/* Wrapper for the verify chip/badge */
.verify-wrap { position: relative; }

/* Put chip/badge inside the field on the right */
.verify-btn, .verify-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Small pill button */
.btn-compact {
  padding: .35rem .6rem;
  line-height: 1;
  height: 28px;
  font-size: .85rem;
  border-radius: 999px;
}

/* Give the input room so text doesn't run under the chip */
.verify-wrap .form-control { padding-right: 100px; }

/* Verified badge */
.verify-badge{
  background:#16a34a; color:#fff; border-radius:999px;
  padding:.3rem .6rem; font-size:.8rem; display:inline-flex; gap:.4rem; align-items:center;
}

/* Inline error/help message */
.field-help { display:block; margin-top:.35rem; font-size:.85rem; color:#dc2626; }

/* Label only red when the group has an error */
.form-group.error .form-label { color:#ef4444; }

/* Required star */
.req { color:#ef4444; margin-left:4px; }
