 /* Global Styles */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    /* Body Background & Layout */
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }
    
    /* Enhanced animated background elements */
    body::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                  radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                  radial-gradient(circle at 20% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
      animation: floatComplex 8s ease-in-out infinite;
      z-index: 0;
    }
    
    body::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 10% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
      animation: drift 12s ease-in-out infinite reverse;
      z-index: 0;
    }
    
    /* Floating particles */
    .particles {
      position: absolute;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 0;
    }
    
    .particle {
      position: absolute;
      background: rgba(255, 255, 255, 0.6);
      border-radius: 50%;
      animation: particleFloat 20s infinite linear;
    }
    
    .particle:nth-child(1) {
      width: 6px;
      height: 6px;
      left: 10%;
      animation-delay: -2s;
      animation-duration: 18s;
    }
    
    .particle:nth-child(2) {
      width: 4px;
      height: 4px;
      left: 20%;
      animation-delay: -5s;
      animation-duration: 22s;
    }
    
    .particle:nth-child(3) {
      width: 8px;
      height: 8px;
      left: 30%;
      animation-delay: -8s;
      animation-duration: 16s;
    }
    
    .particle:nth-child(4) {
      width: 3px;
      height: 3px;
      left: 40%;
      animation-delay: -12s;
      animation-duration: 25s;
    }
    
    .particle:nth-child(5) {
      width: 5px;
      height: 5px;
      left: 50%;
      animation-delay: -15s;
      animation-duration: 20s;
    }
    
    .particle:nth-child(6) {
      width: 7px;
      height: 7px;
      left: 60%;
      animation-delay: -3s;
      animation-duration: 19s;
    }
    
    .particle:nth-child(7) {
      width: 4px;
      height: 4px;
      left: 70%;
      animation-delay: -10s;
      animation-duration: 23s;
    }
    
    .particle:nth-child(8) {
      width: 6px;
      height: 6px;
      left: 80%;
      animation-delay: -7s;
      animation-duration: 17s;
    }
    
    .particle:nth-child(9) {
      width: 3px;
      height: 3px;
      left: 90%;
      animation-delay: -14s;
      animation-duration: 21s;
    }
    
    /* Animated shapes */
    .shape {
      position: absolute;
      z-index: 0;
    }
    
    .shape-1 {
      width: 100px;
      height: 100px;
      background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
      top: 15%;
      left: 10%;
      animation: morphing 15s ease-in-out infinite;
    }
    
    .shape-2 {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
      border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
      top: 70%;
      right: 15%;
      animation: morphing 18s ease-in-out infinite reverse;
    }
    
    .shape-3 {
      width: 60px;
      height: 60px;
      background: linear-gradient(225deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      top: 45%;
      right: 8%;
      animation: morphing 12s ease-in-out infinite;
      animation-delay: -5s;
    }
    
    /* Advanced keyframe animations */
    @keyframes floatComplex {
      0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
      }
      25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.05);
      }
      50% { 
        transform: translateY(-15px) translateX(-10px) rotate(180deg) scale(0.95);
      }
      75% { 
        transform: translateY(-25px) translateX(15px) rotate(270deg) scale(1.02);
      }
    }
    
    @keyframes drift {
      0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 1;
      }
      33% { 
        transform: translateX(-20px) translateY(-15px) scale(1.1);
        opacity: 0.8;
      }
      66% { 
        transform: translateX(15px) translateY(-25px) scale(0.9);
        opacity: 0.9;
      }
    }
    
    @keyframes particleFloat {
      0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
      }
      10% {
        opacity: 1;
      }
      90% {
        opacity: 1;
      }
      100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
      }
    }
    
    @keyframes morphing {
      0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
      }
      25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg) scale(1.1);
      }
      50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg) scale(0.9);
      }
      75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg) scale(1.05);
      }
    }
    
    /* Login Container */
    .login-container {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      padding: 40px 30px;
      border-radius: 20px;
      box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
      width: 100%;
      max-width: 400px;
      position: relative;
      z-index: 1;
      transform: translateY(0);
      transition: all 0.3s ease;
    }
    .login-container:hover {
      transform: translateY(-5px);
      box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    }
    /* Login Header */
    .login-header {
      text-align: center;
      margin-bottom: 30px;
    }
    .login-icon {
      font-size: 48px;
      margin-bottom: 15px;
      display: block;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
    h2 {
      color: #2c3e50;
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .subtitle {
      color: #7f8c8d;
      font-size: 14px;
      font-weight: 400;
    }
    /* Form Group (for input fields) */
    .form-group {
      position: relative;
      margin-bottom: 20px;
    }
    .form-group input {
      width: 100%;
      padding: 15px 50px 15px 20px;
      border: 2px solid transparent;
      border-radius: 12px;
      font-size: 16px;
      background: transparent;
      color: black;
      transition: all 0.3s ease;
      outline: none;
    }
    .form-group input:focus {
      border-color: #667eea;
      background: transparent;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
      transform: translateY(-2px);
    }
    /* Removed icon styles - no longer using icons in form */
    .form-group input::placeholder {
      color: #bdc3c7;
      transition: opacity 0.3s ease;
    }
    .form-group input:focus::placeholder {
      opacity: 0.7;
    }
    /* Show/Hide Password Icon */
    .password-toggle-icon {
      position: absolute;
      right: 18px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      color: #95a5a6;
      cursor: pointer;
      transition: color 0.3s ease;
    }
    .password-toggle-icon:hover {
      color: #667eea;
    }
    /* Login Button */
    .login-btn {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      margin-bottom: 20px;
    }
    .login-btn::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;
    }
    .login-btn:hover::before {
      left: 100%;
    }
    .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }
    .login-btn:active {
      transform: translateY(0);
    }
    .login-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
    }
    /* Register Section */
    .register-section {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #e1e8ed;
    }
    .register-text {
      color: #7f8c8d;
      font-size: 14px;
      margin-bottom: 15px;
    }
    .register-btn {
      width: 100%;
      padding: 12px;
      background: transparent;
      color: #667eea;
      border: 2px solid #667eea;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .register-btn:hover {
      background: #667eea;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    }
    /* Error Message */
    .error {
      background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
      color: white;
      padding: 12px 15px;
      border-radius: 10px;
      text-align: center;
      margin-top: 15px;
      font-size: 14px;
      font-weight: 500;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }
    .error.show {
      opacity: 1;
      transform: translateY(0);
    }
    /* Loading State */
    .loading {
      display: none;
      text-align: center;
      margin-top: 15px;
    }
    .spinner {
      width: 20px;
      height: 20px;
      border: 2px solid #e1e8ed;
      border-top: 2px solid #667eea;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      display: inline-block;
      margin-right: 10px;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    /* Success Animation */
    .success-check {
      display: none;
      color: #27ae60;
      font-size: 48px;
      text-align: center;
      margin: 20px 0;
      animation: checkmark 0.5s ease-out;
    }
    @keyframes checkmark {
      0% { transform: scale(0); }
      50% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }
    /* Shake Animation */
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
    /* --- Mobile Responsive Styles --- */
    @media (max-width: 480px) {
      body {
        padding: 15px;
      }
      .login-container {
        padding: 30px 25px;
        border-radius: 15px;
        max-width: 100%;
      }
      .login-icon {
        font-size: 40px;
        margin-bottom: 12px;
      }
      h2 {
        font-size: 22px;
      }
      .subtitle {
        font-size: 13px;
      }
      .form-group input {
        padding: 12px 45px 12px 15px;
        font-size: 16px;
      }
      /* Removed mobile icon styles */
      
      .password-toggle-icon {
        right: 15px;
        font-size: 16px;
      }
      .login-btn {
        padding: 14px;
        font-size: 16px;
      }
      .register-btn {
        padding: 11px;
        font-size: 14px;
      }
      
      /* Reduce particles on mobile */
      .particle:nth-child(n+6) {
        display: none;
      }
      
      .shape-2,
      .shape-3 {
        display: none;
      }
    }
    @media (max-width: 320px) {
      .login-container {
        padding: 25px 20px;
        margin: 10px;
      }
      .form-group input {
        padding: 11px 40px 11px 12px;
      }
      /* Removed small mobile icon styles */
      .password-toggle-icon {
        right: 12px;
      }
    }
    /* Landscape mobile */
    @media (max-height: 600px) and (orientation: landscape) {
      body {
        padding: 10px;
      }
      .login-container {
        padding: 20px 25px;
      }
      .login-icon {
        font-size: 32px;
        margin-bottom: 8px;
      }
      .login-header {
        margin-bottom: 20px;
      }
      .form-group {
        margin-bottom: 15px;
      }
      
      /* Hide some decorative elements in landscape */
      .particles {
        display: none;
      }
    }
    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
      .login-container {
        background: rgba(45, 55, 72, 0.95);
        color: white;
      }
      h2 {
        color: #e2e8f0;
      }
      .subtitle {
        color: #a0aec0;
      }
      .form-group input {
        background: transparent;
        border-color: #4a5568;
        color: white;
      }
      .form-group input:focus {
          background: transparent;
          border-color: #667eea;
      }
      .form-group input::placeholder {
        color: #718096;
      }
      .register-text {
        color: #a0aec0;
      }
      .register-section {
        border-top-color: #4a5568;
      }
    }