/* Enhanced Signup Form Styles - Mobile First Responsive Design */

/* Base styles and CSS custom properties */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #7c3aed;
  --success-color: #059669;
  --error-color: #dc2626;
  --warning-color: #d97706;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #d1d5db;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --border-radius: 0.75rem;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  height: auto;
  overflow-y: auto !important;
  margin: 0;
  padding: 0;
}

/* Preloader Styles */
.preloader {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(135deg, #122C4F 0%, #002366 100%);
  display: flex; 
  justify-content: center;
  align-items: center; 
  z-index: 50;
}

.box {
  width: 12px; 
  height: 12px; 
  margin: 4px;
  background: linear-gradient(45deg, #ffffff, #f1f5f9);
  animation: bounce 0.6s infinite alternate;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

.box:nth-child(2) { animation-delay: 0.2s; }
.box:nth-child(3) { animation-delay: 0.4s; }
.box:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce {
  to { transform: translateY(-20px); opacity: 0.7; }
}

/* Background Styles */
.gradient-bg {
  background: linear-gradient(135deg, #122C4F 0%, #002366 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.2), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(18, 44, 79, 0.15), transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Enhanced Glass Card with Better Responsive Design */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  z-index: 10;
}

/* Form grid layout - Two columns on medium screens and up */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

/* Two-column layout for medium screens and up */
@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  .md\\:pr-10 {
    padding-right: 2.5rem;
  }
  
  .md\\:pl-6 {
    padding-left: 1.5rem;
  }
  
  .md\\:border-r {
    border-right: 1px solid #e5e7eb;
  }
}

/* Enhanced Input Group with Better Spacing */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 8px;
  color: #6b7280;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: var(--primary-color);
  font-weight: 500;
}

.form-input:focus:valid {
  border-color: var(--success-color);
}

.form-input:focus:invalid {
  border-color: var(--error-color);
}

/* Enhanced Button with Gradient and Hover Effects */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Google button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px;
  white-space: nowrap;
  width: 100%;
}

.google-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  background: #f8fafc;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error-color);
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--success-color);
}

.hidden {
  display: none !important;
}

/* Close button */
.close-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Floating icons */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Logo container */
.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* Role cards */
.role-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transition: left 0.5s;
}

.role-card:hover::before {
  left: 100%;
}

.role-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.role-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #eff6ff;
}

.role-card.active::before {
  display: none;
}

/* Block cards */
.block-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.block-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.05), transparent);
  transition: left 0.5s;
}

.block-card:hover::before {
  left: 100%;
}

.block-card:hover {
  border-color: var(--success-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.block-card.active {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
  background: #ecfdf5;
}

.block-card.active::before {
  display: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive breakpoints */
@media (min-width: 320px) {
  .glass-card {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .floating-label {
    font-size: 12px;
  }
  
  .floating-icon {
    font-size: 1.5rem;
  }
  
  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .role-card {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .block-card {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (min-width: 576px) {
  .glass-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 14px 18px;
    font-size: 15px;
  }
  
  .floating-label {
    font-size: 13px;
  }
  
  .close-btn {
    width: 38px;
    height: 38px;
    font-size: 1.375rem;
  }
  
  .role-card {
    padding: 11px 14px;
    font-size: 13px;
  }
  
  .block-card {
    padding: 7px 11px;
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .glass-card {
    padding: 2rem;
    margin: 1.5rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .floating-label {
    font-size: 14px;
  }
  
  .floating-icon {
    font-size: 2rem;
  }
  
  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .role-card {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .block-card {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  .glass-card {
    padding: 2.5rem;
    margin: 2rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 18px 22px;
    font-size: 17px;
  }
  
  .floating-label {
    font-size: 15px;
  }
  
  .close-btn {
    width: 42px;
    height: 42px;
    font-size: 1.625rem;
  }
  
  .role-card {
    padding: 13px 18px;
    font-size: 15px;
  }
  
  .block-card {
    padding: 9px 13px;
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .glass-card {
    padding: 3rem;
    margin: 2.5rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 20px 24px;
    font-size: 18px;
  }
  
  .floating-label {
    font-size: 16px;
  }
  
  .floating-icon {
    font-size: 2.5rem;
  }
  
  .close-btn {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
  
  .role-card {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .block-card {
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (min-width: 1400px) {
  .glass-card {
    padding: 3.5rem;
    margin: 3rem;
  }
  
  .form-input, .btn-primary, .google-btn {
    padding: 22px 26px;
    font-size: 19px;
  }
  
  .floating-label {
    font-size: 17px;
  }
  
  .close-btn {
    width: 46px;
    height: 46px;
    font-size: 1.875rem;
  }
  
  .role-card {
    padding: 15px 22px;
    font-size: 17px;
  }
  
  .block-card {
    padding: 11px 15px;
    font-size: 17px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .glass-card {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .input-group {
    margin-bottom: 1rem;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
  
  .logo-container img {
    max-width: 80px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .form-input {
    border-width: 1px;
  }
  
  .btn-primary {
    border-width: 1px;
  }
  
  .google-btn {
    border-width: 1px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-icon {
    animation: none;
  }
  
  .btn-primary::before {
    display: none;
  }
  
  .form-input:focus {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .google-btn:hover {
    transform: none;
  }
  
  .role-card:hover {
    transform: none;
  }
  
  .block-card:hover {
    transform: none;
  }
  
  .logo-container img:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.form-input:focus,
.btn-primary:focus,
.google-btn:focus,
.role-card:focus,
.block-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Password strength indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: var(--transition-normal);
}

.strength-weak { background: var(--error-color); }
.strength-medium { background: var(--warning-color); }
.strength-strong { background: var(--success-color); }

/* Form validation messages */
.validation-message {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  transition: var(--transition-normal);
}

.validation-message.error {
  color: var(--error-color);
}

.validation-message.success {
  color: var(--success-color);
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
  line-height: 1.6;
}

/* Grid system utilities */
.grid {
  display: grid;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Margin and padding utilities */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Border radius utilities */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Color utilities */
.text-center { text-align: center; }
.text-gray-600 { color: var(--text-secondary); }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: var(--text-primary); }
.text-blue-600 { color: var(--primary-color); }
.text-indigo-600 { color: #4f46e5; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }

/* Font weight utilities */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Background utilities */
.bg-gradient-to-r {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-light); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }

/* Transition utilities */
.transition-all { transition: all var(--transition-normal); }
.transition-transform { transition: transform var(--transition-normal); }

/* Hover utilities */
.hover\\:scale-105:hover { transform: scale(1.05); }
.hover\\:scale-110:hover { transform: scale(1.1); }

/* Focus utilities */
.focus\\:outline-none:focus { outline: none; }
.focus\\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary-color); }
.focus\\:ring-4:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* Width utilities */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }

/* Height utilities */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }

/* Gap utilities */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-10 { gap: 2.5rem; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Z-index utilities */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Min-height utilities */
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }

/* Max-width utilities */
.max-w-screen-xl { max-width: 1280px; }

/* Margin auto utilities */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding utilities for responsive design */
@media (min-width: 640px) {
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Flex utilities for responsive design */
@media (min-width: 768px) {
  .md\\:items-start { align-items: flex-start; }
  .md\\:min-h-0 { min-height: 0; }
  .md\\:overflow-y-visible { overflow-y: visible; }
}

/* Grid utilities for responsive design */
@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Padding utilities for responsive design */
@media (min-width: 768px) {
  .md\\:pr-10 { padding-right: 2.5rem; }
  .md\\:pl-6 { padding-left: 1.5rem; }
}



/* Enhanced CSS Variables */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #a5b4fc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Background */
body {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0a2540 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 239, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 239, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Floating Icons */
.floating-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(96, 239, 255, 0.15);
    animation: float-up 15s linear infinite;
    text-shadow: 0 0 20px rgba(96, 239, 255, 0.3);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Close Button */
.close-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    z-index: 100;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(96, 239, 255, 0.5);
}

/* Enhanced Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
}

.loader:before,
.loader:after {
    content: "";
    grid-area: 1/1;
    margin: 0 0 15px 15px;
    --c: #0000 calc(100% / 3), #046d8b 0 calc(2 * 100% / 3), #0000 0;
    --c1: linear-gradient(90deg, var(--c));
    --c2: linear-gradient(0deg, var(--c));
    background: var(--c1), var(--c2), var(--c1), var(--c2);
    background-size:
        300% 4px,
        4px 300%;
    background-repeat: no-repeat;
    animation: l12 1s infinite linear;
}

.loader:after {
    margin: 15px 15px 0 0;
    transform: scale(-1, -1);
}

@keyframes l12 {
    0% {
        background-position:
            50% 0,
            100% 100%,
            0 100%,
            0 0;
    }

    25% {
        background-position:
            0 0,
            100% 50%,
            0 100%,
            0 0;
    }

    50% {
        background-position:
            0 0,
            100% 0,
            50% 100%,
            0 0;
    }

    75% {
        background-position:
            0 0,
            100% 0,
            100% 100%,
            0 50%;
    }

    75.01% {
        background-position:
            100% 0,
            100% 0,
            100% 100%,
            0 50%;
    }

    100% {
        background-position:
            50% 0,
            100% 0,
            100% 100%,
            0 100%;
    }
}

/* Enhanced Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Form Inputs */
.form-input {
    background: white !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    position: relative;
}

.form-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    transform: translateY(-2px);
    outline: none !important;
}

.form-input:hover {
    border-color: var(--primary-light) !important;
}

/* Enhanced Floating Labels */
.floating-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
    font-weight: 500;
}

.form-input:focus+.floating-label,
.form-input:not(:placeholder-shown)+.floating-label,
.form-input.has-value+.floating-label {
    top: 0;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    border-radius: var(--radius) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) !important;
}

/* Enhanced Google Button */
.google-btn {
    background: white !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 1rem 1.5rem !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: var(--transition);
}

.google-btn:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow) !important;
}

.google-btn:hover::before {
    left: 100%;
}

/* Enhanced Role Cards */
.role-card {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    background: white !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--primary-light) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow) !important;
}

.role-card:hover::before {
    opacity: 1;
}

.role-card.active {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    transform: translateY(-2px) !important;
}

.role-card.active::before {
    opacity: 1;
}

/* Enhanced Role Icons */
.role-icon {
    background: var(--bg-gray) !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
    position: relative;
    z-index: 1;
}

.role-card.active .role-icon {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
}

.role-card:hover .role-icon {
    transform: scale(1.05);
}

/* Enhanced Block Cards */
.block-card {
    border: 2px solid var(--border-color) !important;
    background: white !important;
    border-radius: 9999px !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

.block-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: var(--transition);
}

.block-card:hover {
    border-color: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow) !important;
}

.block-card:hover::before {
    left: 100%;
}

.block-card.active {
    border-color: var(--primary-color) !important;
    background: rgba(79, 70, 229, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* Enhanced Password Strength */
.password-strength {
    height: 4px !important;
    background: var(--border-color) !important;
    border-radius: 9999px !important;
    margin-top: 0.75rem !important;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100% !important;
    transition: var(--transition) !important;
    border-radius: 9999px !important;
    position: relative;
}

.password-strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Terms & Conditions */
.terms-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.02);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.terms-container:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
}

.terms-checkbox {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    transition: var(--transition);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.terms-checkbox label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.6;
    user-select: none;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.terms-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--primary-hover);
}

.terms-link:hover::after {
    width: 100%;
}

/* Enhanced Modal Overlay & Container */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-container {
    background: white;
    border-radius: 1.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 1.5rem;
    color: var(--danger);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    line-height: 1.7;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.modal-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    position: relative;
    padding-left: 1rem;
}

.modal-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.modal-body ul {
    padding-left: 2rem;
    list-style: none;
}

.modal-body li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    position: relative;
}

.modal-body li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.modal-footer {
    padding: 1.5rem 2.5rem 2rem;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: rgba(249, 250, 251, 0.5);
}

.modal-footer button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.modal-footer button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.modal-footer button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.modal-footer button:hover::before {
    left: 100%;
}

.modal-footer button:active {
    transform: translateY(-1px);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced Base Layout */
html,
body {
    min-height: 100vh;
    height: auto;
    overflow-y: auto !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.floating-icons {
    pointer-events: none;
}

/* Enhanced Glass Card Container */
.glass-card {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 3rem auto !important;
    padding: 3rem !important;
    position: relative;
    z-index: 10;
}

/* Enhanced Header Styling */
.signup-grid h1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem !important;
    text-align: center;
    position: relative;
}

.signup-grid h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    border-radius: 2px;
}

/* Enhanced Logo Container */
.logo-container {
    margin-bottom: 2rem !important;
    text-align: center;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.logo-container img {
    max-width: 60px !important;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.2));
}

.logo-container:hover img {
    transform: scale(1.05) rotate(5deg);
}

/* Google Sign-in Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    white-space: nowrap;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    font-weight: 500;
}

.google-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
}

/* Two-Column Grid Layout */
.signup-grid {
    display: block;
}

@media (min-width: 1024px) {
    .signup-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .signup-right {
        margin-top: 0;
        position: sticky;
        top: 2rem;
    }
}

/* Role Selection Cards */
.role-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.role-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card.active {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.role-card.active::before {
    opacity: 1;
}

/* Minimalist Role Icons */
.role-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.role-card.active .role-icon {
    background: #6366f1;
    color: white;
}

.role-card:hover .role-icon {
    transform: scale(1.05);
}

.role-card svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.role-card>div:not(.role-icon) {
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Block Selection Pills */
.block-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    border-radius: 9999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    user-select: none;
}

.block-card:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.block-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Form Input Enhancements */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:focus:valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:focus:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password Strength Indicator */
.password-strength {
    height: 3px;
    background: #e5e7eb;
    border-radius: 9999px;
    margin-top: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 9999px;
}

/* Mobile Info Toggle - Minimal Design */
.mobile-info-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
}

.mobile-info-toggle:hover {
    opacity: 0.7;
}

.mobile-info-toggle:active {
    opacity: 0.5;
}

/* Mobile Account Content Animation */
#mobileAccountContent {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* On mobile, when hidden class is present */
@media (max-width: 767px) {
    #mobileAccountContent.hidden {
        max-height: 0 !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        display: none !important;
    }

    #mobileAccountContent:not(.hidden) {
        max-height: 2000px;
        opacity: 1;
        margin-top: 1rem;
        animation: slideDown 0.3s ease;
        display: block !important;
    }
}

/* On desktop, always show regardless of hidden class */
@media (min-width: 768px) {
    #mobileAccountContent {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 0 !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Account Icon Tooltips */
.account-icon-wrapper {
    position: relative;
    display: inline-block;
}

.account-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.account-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.account-icon-wrapper:hover .account-tooltip,
.account-icon-wrapper:active .account-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {

    .form-input,
    .btn-primary,
    .google-btn {
        min-height: 44px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        padding: 0.75rem 1rem;
    }

    .role-card,
    .block-card {
        min-height: 44px;
        padding: 0.75rem;
    }

    .glass-card {
        margin: 0.5rem !important;
        padding: 1.25rem 1rem !important;
        border-radius: 0.75rem !important;
        max-width: 380px !important;
    }

    .modal-container {
        border-radius: 1rem;
        max-height: 95vh;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 1rem 1.25rem 1.25rem;
    }

    .signup-grid h1 {
        font-size: 1.5rem !important;
    }

    .logo-container img {
        max-width: 100px !important;
    }

    .terms-container {
        padding: 0.5rem;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .floating-icon {
        font-size: 1.5rem;
    }

    /* Mobile - keep compact spacing */
    .signup-right {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid #e5e7eb;
    }

    .md\:border-r {
        border-right: none !important;
    }

    .md\:pr-10 {
        padding-right: 0 !important;
    }

    .md\:pl-6 {
        padding-left: 0 !important;
    }

    /* Make form wider on mobile */
    #signupForm {
        max-width: 100% !important;
    }

    /* Reduce header text size on mobile */
    h1 {
        font-size: 1.5rem !important;
    }

    .text-center p {
        font-size: 0.8125rem !important;
    }

    /* Make section headers more compact on mobile */
    .section-header h2 {
        font-size: 0.9375rem !important;
    }

    .section-header p {
        font-size: 0.75rem !important;
    }

    /* Compact role cards on mobile */
    .role-card {
        padding: 8px 10px !important;
    }

    .role-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .role-card svg {
        width: 16px !important;
        height: 16px !important;
    }

    .role-card .text-sm {
        font-size: 0.75rem !important;
    }

    .role-card .text-xs {
        font-size: 0.625rem !important;
    }

    /* Compact block picker on mobile */
    #blockPicker {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
    }

    #blockPicker .section-header {
        margin-bottom: 0.5rem !important;
    }

    .block-card {
        padding: 4px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Reduce spacing between sections */
    .divider {
        margin: 1rem 0 !important;
    }

    /* Compact input groups */
    .input-group {
        margin-bottom: 0.75rem !important;
    }

    /* Reduce button padding */
    .btn-primary {
        padding: 0.75rem 1rem !important;
    }

    .google-btn {
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Hide the right column completely on mobile */
    .signup-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Enhanced Micro-animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

/* Error state animations */
.form-input.error {
    border-color: var(--danger) !important;
    animation: shake 0.5s ease-in-out;
}

/* Success state animations */
.form-input.success {
    border-color: var(--success) !important;
}

/* Loading state for buttons */
.btn-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Enhanced focus states */
.input-group.focused .floating-label {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.input-group.focused .form-input {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}


.text-center p {
    font-size: 0.875rem !important;
}

/* Make section headers more compact on mobile */
.section-header h2 {
    font-size: 1rem !important;
}

.section-header p {
    font-size: 0.8125rem !important;
}

/* Compact role cards on mobile */
.role-card {
    padding: 10px 12px !important;
}

.role-icon {
    width: 32px !important;
    height: 32px !important;
}

.role-card svg {
    width: 18px !important;
    height: 18px !important;
}

.role-card .text-sm {
    font-size: 0.8125rem !important;
}

.role-card .text-xs {
    font-size: 0.6875rem !important;
}

/* Compact block picker on mobile */
#blockPicker {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}

#blockPicker .section-header {
    margin-bottom: 0.75rem !important;
}

.block-card {
    padding: 6px 14px !important;
    font-size: 0.8125rem !important;
}

/* Reduce spacing between sections */
.divider {
    margin: 1.25rem 0 !important;
}

/* Compact input groups */
.input-group {
    margin-bottom: 0.875rem !important;
}

/* Compact terms container */
.terms-container {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Reduce button padding */
.btn-primary {
    padding: 0.75rem 1.25rem !important;
}

.google-btn {
    padding: 0.625rem 1rem !important;
    margin-bottom: 1rem !important;
}


/* Desktop Enhancements */
@media (min-width: 1024px) {
    .glass-card {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    }

    .form-input:hover {
        border-color: #d1d5db;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }
}

/* Ultra-wide Optimization */
@media (min-width: 1600px) {
    .glass-card {
        max-width: 1400px !important;
    }
}

/* Logo Container */
.logo-container {
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 50px;
    height: auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Enhanced Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(79, 70, 229, 0.2) 20%, rgba(79, 70, 229, 0.2) 80%, transparent);
    border-radius: 1px;
}

.divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Professional Form Spacing */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

/* Compact, professional spacing */
#signupForm {
    padding: 0;
}

#signupForm .input-group {
    margin-bottom: 1rem;
}

/* Password helpers spacing */
.input-group .flex.items-center {
    margin-top: 0.5rem;
}

.password-strength {
    margin-top: 0.5rem !important;
}

/* Terms spacing - compact */
.terms-container {
    margin-top: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}

.terms-checkbox {
    padding: 0.5rem 0.75rem !important;
}

/* Submit button */
.btn-primary {
    margin-top: 0.5rem !important;
    padding: 0.875rem 1.5rem;
}

/* Right column professional spacing */
.signup-right {
    margin-top: 0 !important;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    font-size: 0.8125rem;
}

/* Role cards - tighter */
.role-card {
    padding: 12px 14px;
}

.role-icon {
    width: 36px;
    height: 36px;
}

/* Block picker - compact */
#blockPicker {
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #e5e7eb;
}

#blockPicker .section-header {
    margin-bottom: 0.875rem;
}

#blockPicker .section-header h2 {
    font-size: 0.9375rem !important;
}

/* Block cards - smaller */
.block-card {
    padding: 8px 16px;
    font-size: 0.875rem;
    gap: 8px;
}

.block-card svg {
    width: 16px;
    height: 16px;
}

/* Divider - compact */
.divider {
    margin: 1.5rem 0 !important;
}

/* Google button */
.google-btn {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
}

/* Login link - compact */
.signup-right>div:last-child {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb;
}