  :root {
      --primary: #C41E3A;
      --primary-dark: #9b172d;
      --primary-light: #d63753;
      --secondary: #64748b;
      --dark-bg: #0f111a;
      --darker-bg: #07090f;
      --card-bg: #151a28;
      --border: #2a3143;
      --text-primary: #f8fafc;
      --text-secondary: #cbd5e1;
      --text-muted: #64748b;
      --success: #10b981;
      --error: #ef4444;
      --error-bg: rgba(239, 68, 68, 0.1);
      --error-border: rgba(239, 68, 68, 0.3);
      --accent-red: #C41E3A;
      --accent-red-light: rgba(196, 30, 58, 0.2);
      --accent-red-glow: rgba(196, 30, 58, 0.4);
      --gradient-start: #C41E3A;
      --gradient-end: #e59a18;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Inter', sans-serif;
      background: var(--darker-bg);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
  }

  .login-container {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
      position: relative;
  }

  .login-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
          radial-gradient(circle at 25% 25%, var(--accent-red-light) 0%, transparent 50%),
          radial-gradient(circle at 75% 75%, rgba(229, 154, 24, 0.15) 0%, transparent 50%);
      animation: backgroundFloat 20s ease-in-out infinite;
  }

  @keyframes backgroundFloat {

      0%,
      100% {
          transform: translate(0, 0) rotate(0deg);
      }

      33% {
          transform: translate(30px, -30px) rotate(1deg);
      }

      66% {
          transform: translate(-20px, 20px) rotate(-1deg);
      }
  }

  .login-card {
      background: var(--card-bg);
      backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 3rem 2.5rem;
      width: 100%;
      max-width: 480px;
      box-shadow:
          0 25px 50px -12px rgba(0, 0, 0, 0.5),
          0 0 0 1px rgba(255, 255, 255, 0.05),
          0 0 40px rgba(196, 30, 58, 0.1);
      position: relative;
      z-index: 10;
      animation: slideUp 0.8s ease-out;
  }

  @keyframes slideUp {
      from {
          opacity: 0;
          transform: translateY(30px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  .login-header {
      text-align: center;
      margin-bottom: 2.5rem;
  }

  .brand-logo {
      width: 100%;
      max-width: 200px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      transition: all 0.3s ease;
  }

  .brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: all 0.3s ease;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }

  .brand-logo:hover img {
      transform: scale(1.05);
      filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  }

  /* Fallback for when logo image doesn't load */
  .brand-logo-fallback {
      font-size: 2.5rem;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 700;
      letter-spacing: -0.05em;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .login-title {
      font-size: 2rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
      letter-spacing: -0.025em;
  }

  .login-subtitle {
      color: var(--text-secondary);
      font-size: 1rem;
      font-weight: 400;
  }

  .form-group {
      margin-bottom: 1.5rem;
  }

  .form-label {
      display: block;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
  }

  .input-group {
      position: relative;
  }

  .form-control {
      width: 100%;
      padding: 0.875rem 1rem 0.875rem 3rem;
      background: var(--darker-bg);
      border: 2px solid var(--border);
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 1rem;
      transition: all 0.3s ease;
  }

  .form-control:focus {
      outline: none;
      border-color: var(--accent-red);
      box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
      background: var(--card-bg);
      transform: translateY(-1px);
      color: var(--text-primary);
  }

  .form-control.is-invalid {
      border-color: var(--error);
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }

  .form-control::placeholder {
      color: var(--text-muted);
  }

  .input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1.1rem;
      z-index: 2;
      transition: color 0.3s ease;
  }

  .form-control:focus+.input-icon {
      color: var(--accent-red);
  }

  .btn-login {
      width: 100%;
      padding: 1rem;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      border: none;
      border-radius: 12px;
      color: white;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      margin-top: 1rem;
  }

  .btn-login::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.6s;
  }

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

  .btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px var(--accent-red-glow);
      background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  }

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

  .btn-login:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
  }

  .error-alert {
      background: var(--error-bg);
      border: 1px solid var(--error-border);
      border-radius: 12px;
      padding: 1rem 1.25rem;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      animation: errorSlide 0.4s ease-out;
  }

  @keyframes errorSlide {
      from {
          opacity: 0;
          transform: translateY(-10px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  .error-alert .error-icon {
      color: var(--error);
      font-size: 1.1rem;
      margin-top: 0.125rem;
      flex-shrink: 0;
  }

  .error-alert .error-text {
      color: var(--error);
      font-size: 0.875rem;
      line-height: 1.4;
  }

  .field-error {
      color: var(--error);
      font-size: 0.8125rem;
      margin-top: 0.375rem;
      display: flex;
      align-items: center;
      gap: 0.375rem;
  }

  .field-error i {
      font-size: 0.875rem;
  }

  .spinner {
      width: 1rem;
      height: 1rem;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top: 2px solid white;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-left: 0.5rem;
  }

  @keyframes spin {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }
  }

  .forgot-password {
      text-align: center;
      margin-top: 1rem;
  }

  .forgot-password a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.875rem;
      transition: all 0.3s ease;
      position: relative;
  }

  .forgot-password a:hover {
      color: var(--accent-red);
  }

  .forgot-password a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 1px;
      bottom: -2px;
      left: 50%;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      transition: all 0.3s ease;
      transform: translateX(-50%);
  }

  .forgot-password a:hover::after {
      width: 100%;
  }

  /* Add subtle purple accent to card border on hover */
  .login-card:hover {
      border-color: rgba(196, 30, 58, 0.3);
      transition: border-color 0.3s ease;
  }

  .footer-text {
      text-align: center;
      margin-top: 2rem;
      color: var(--text-muted);
      font-size: 0.875rem;
  }

  /* Responsive Design */
  @media (max-width: 640px) {
      .login-card {
          margin: 1rem;
          padding: 2rem 1.5rem;
          border-radius: 20px;
      }

      .login-title {
          font-size: 1.75rem;
      }

      .brand-logo {
          max-width: 150px;
          height: 60px;
      }
  }

  /* Custom scrollbar with purple accent */
  ::-webkit-scrollbar {
      width: 6px;
  }

  ::-webkit-scrollbar-track {
      background: var(--dark-bg);
  }

  ::-webkit-scrollbar-thumb {
      background: var(--accent-red);
      border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-dark);
  }

  /* Ripple effect animation */
  @keyframes ripple {
      to {
          transform: scale(4);
          opacity: 0;
      }
  }