
    :root {
      --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    }
    
    * {
      box-sizing: border-box;
    }

    /* Password toggle styling */
.input-group .toggle-password {
  border-radius: 0 12px 12px 0 !important;
  border-left: none;
  background: white;
  border-color: #e5e7eb;
}

.input-group .toggle-password:hover {
  background: #f8f9fa;
}

.input-group .form-control:focus + .toggle-password {
  border-color: #667eea;
}

/* Ensure the input field gets proper rounded corners on left side */
.input-group .form-control {
  border-radius: 12px 0 0 12px !important;
}
    
    /**/
    
    body {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: flex-start; /* Changed from center to prevent tall content being cut off */
      justify-content: center;
    }
    
    .page-center {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      width: 100%;
      padding: 2rem 1rem;
    }
    
    .auth-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      width: 100%;
      max-width: 420px;
      overflow: hidden;
      position: relative;
    }
    
    .auth-header {
      text-align: center;
      padding: 2.5rem 2rem 1.5rem;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    }
    
    .auth-logo {
      width: 70px;
      height: 70px;
      margin: 0 auto 1.5rem;
      background: var(--primary-gradient);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
      position: relative;
    }
    
    .auth-logo::after {
      content: 'DAAAQ';
      color: white;
      font-weight: 700;
      font-size: 0.9rem;
    }
    
    .auth-title {
      font-size: 1.875rem;
      font-weight: 700;
      color: #2d3748;
      margin-bottom: 0.5rem;
      transition: all 0.3s ease;
    }
    
    .auth-subtitle {
      color: #718096;
      font-size: 1rem;
      margin-bottom: 0;
    }
    
    .nav-tabs {
      border: none;
      background: #f1f5f9;
      border-radius: 12px;
      padding: 6px;
      margin: 0 2rem 2rem;
      display: flex;
    }
    
    .nav-tabs .nav-item {
      flex: 1;
    }
    
    .nav-tabs .nav-link {
      border: none;
      border-radius: 8px;
      padding: 0.875rem 1rem;
      font-weight: 600;
      color: #64748b;
      transition: all 0.3s ease;
      background: transparent;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .nav-tabs .nav-link.active {
      background: var(--primary-gradient);
      color: white;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      transform: translateY(-1px);
    }
    
    .tab-content {
      padding: 0 2rem 2rem;
    }
    
    .form-label {
      font-weight: 600;
      color: #374151;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .form-control, .form-select {
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      padding: 0.875rem 1rem;
      font-size: 1rem;
      transition: all 0.3s ease;
      background: white;
    }
    
    .form-control:focus, .form-select:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
      outline: none;
    }
    
    .form-control.is-invalid {
      border-color: #ef4444;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }
    
    .form-control.is-valid {
      border-color: #10b981;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }
    
    .invalid-feedback, .valid-feedback {
      font-size: 0.875rem;
      margin-top: 0.25rem;
      display: block;
    }
    
    .invalid-feedback {
      color: #ef4444;
    }
    
    .valid-feedback {
      color: #10b981;
    }
    
    .btn-primary {
      background: var(--primary-gradient);
      border: none;
      border-radius: 12px;
      padding: 1rem;
      font-weight: 600;
      font-size: 1.05rem;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .btn-primary:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
    
    .btn-primary:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }
    
    .btn-success {
      background: var(--success-gradient);
      border: none;
      border-radius: 12px;
      padding: 1rem;
      font-weight: 600;
      font-size: 1.05rem;
      box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .btn-success:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
    }
    
    .btn-success:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }
    
    .btn-warning {
      background: var(--warning-gradient);
      border: none;
      border-radius: 12px;
      padding: 1rem;
      font-weight: 600;
      color: #1f2937;
      box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .btn-warning:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(67, 233, 123, 0.4);
      color: #1f2937;
    }
    
    .forgot-link {
      color: #667eea;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
      font-size: 0.9rem;
    }
    
    .forgot-link:hover {
      color: #764ba2;
    }
    
    .alert {
      border-radius: 12px;
      border: none;
      font-weight: 500;
      padding: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .alert-success {
      background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
      color: #0369a1;
      border-left: 4px solid #0ea5e9;
    }
    
    .alert-danger {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
      color: #dc2626;
      border-left: 4px solid #ef4444;
    }
    
    .password-info {
      background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
      border-left: 4px solid #10b981;
      border-radius: 10px;
      padding: 1rem;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
      color: #047857;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .modal-content {
      border-radius: 20px;
      border: none;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .modal-header {
      border-bottom: 1px solid #e5e7eb;
      border-radius: 20px 20px 0 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
      padding: 1.5rem;
    }
    
    .modal-title {
      font-weight: 700;
      color: #1f2937;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .modal-body {
      padding: 1.5rem;
    }
    
    .spinner-border-sm {
      width: 1rem;
      height: 1rem;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .spinner-border {
      animation: spin 1s linear infinite;
    }
    
    /* Mobile Responsive */
    @media (max-width: 576px) {
      .page-center {
        padding: 1rem;
      }
      
      .auth-card {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
      }
      
      .auth-header {
        padding: 2rem 1.5rem 1rem;
      }
      
      .auth-title {
        font-size: 1.5rem;
      }
      
      .auth-subtitle {
        font-size: 0.9rem;
      }
      
      .nav-tabs {
        margin: 0 1.5rem 1.5rem;
        padding: 4px;
      }
      
      .nav-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
      }
      
      .tab-content {
        padding: 0 1.5rem 1.5rem;
      }
      
      .form-control, .form-select {
        padding: 0.75rem;
        font-size: 0.95rem;
      }
      
      .btn-primary, .btn-success {
        padding: 0.875rem;
        font-size: 1rem;
      }
    }
    
    @media (max-width: 400px) {
      .auth-header {
        padding: 1.5rem 1rem 1rem;
      }
      
      .nav-tabs {
        margin: 0 1rem 1rem;
      }
      
      .tab-content {
        padding: 0 1rem 1rem;
      }
    }
