  :root {
      --color-red: #8C1C2D;
      --color-blue: #0B3C66;
      --color-orange: #F9A634;
      --color-white: #FFFFFF;
      --color-dark: #232323;

      --color-light: #f5f5f5;
      --color-gray: #9e9e9e;
      --color-dark-gray: #3c3c3c;

      --color-success: #28a745;
      --color-error: #dc3545;
      --color-warning: #ffc107;
      --color-info: #17a2b8;

      --color-text: var(--color-dark);
      --color-background: var(--color-white);
      --color-primary: var(--color-blue);
      --color-secondary: var(--color-orange);
      --color-accent: var(--color-red);
  }

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

  body {
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, 
          var(--color-light) 0%, 
          #e8f2f7 15%, 
          #f0f7fa 35%, 
          #e5f1f5 55%, 
          #e8f2f7 75%, 
          var(--color-light) 100%);
      background-attachment: fixed;
      color: var(--color-text);
      line-height: 1.6;
      overflow-x: hidden;
      min-height: 100vh;
      position: relative;
  }

  body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
          radial-gradient(circle at 25% 25%, rgba(11, 60, 102, 0.03) 0%, transparent 50%),
          radial-gradient(circle at 75% 75%, rgba(249, 166, 52, 0.03) 0%, transparent 50%),
          radial-gradient(circle at 50% 50%, rgba(140, 28, 45, 0.02) 0%, transparent 50%);
      background-size: 800px 800px, 600px 600px, 400px 400px;
      animation: float 20s ease-in-out infinite;
      pointer-events: none;
      z-index: -1;
  }

  @keyframes float {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(30px, -30px) rotate(120deg); }
      66% { transform: translate(-20px, 20px) rotate(240deg); }
  }

  .app-container {
      display: flex;
      min-height: 100vh;
  }

  .sidebar {
      width: 280px;
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-gray) 100%);
      color: var(--color-white);
      height: 100vh;
      position: fixed;
      left: 0;
      top: 0;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      z-index: 1000;
      overflow-y: auto;
      box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
  }

  .sidebar.open {
      transform: translateX(0);
  }

  .sidebar-header {
      padding: 2rem 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.05);
  }

  .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--color-white);
  }

  .logo i {
      font-size: 1.5rem;
      color: var(--color-white);
  }

  .nav-menu {
      padding: 1rem 0;
  }

  .nav-section {
      margin-bottom: 2rem;
  }

  .nav-section-title {
      padding: 0 1.5rem 0.5rem;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: rgba(255, 255, 255, 0.6);
  }

  .nav-item {
      display: block;
      padding: 0.75rem 1.5rem;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
      position: relative;
  }

  .nav-item:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--color-white);
      border-left-color: var(--color-orange);
  }

  .nav-item.active {
      background-color: rgba(249, 166, 52, 0.2);
      color: var(--color-orange);
      border-left-color: var(--color-orange);
      font-weight: 500;
  }

  .nav-item i {
      width: 20px;
      margin-right: 0.75rem;
  }

  .main-content {
      flex: 1;
      margin-left: 0;
      transition: margin-left 0.3s ease;
      height: 100vh;
      overflow-y: auto;
      padding-left: 0;
  }

  .main-content.sidebar-open {
      margin-left: 280px;
  }

  .header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      padding: 1rem 2rem;
      border-bottom: 1px solid rgba(226, 232, 240, 0.5);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .header-left {
      display: flex;
      align-items: center;
      gap: 1rem;
  }

  .menu-toggle {
      background: none;
      border: none;
      font-size: 1.25rem;
      color: var(--color-text);
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 0.375rem;
      transition: background-color 0.2s ease;
  }

  .menu-toggle:hover {
      background-color: var(--color-light);
  }

  .page-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--color-text);
  }

  .header-right {
      display: flex;
      align-items: center;
      gap: 1rem;
  }

  .user-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--color-gray);
      font-size: 0.875rem;
      background: rgba(255, 255, 255, 0.7);
      padding: 0.5rem 1rem;
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .content {
      padding: 2rem;
      padding-left: 1.5rem;
  }

  .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  .loading {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--color-gray);
  }

  .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid var(--color-light);
      border-top: 2px solid var(--color-primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

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

  @media (min-width: 1024px) {
      .sidebar {
          position: fixed;
          transform: translateX(0);
      }

      .main-content {
          margin-left: 280px;
          padding-left: 0;
      }

      .menu-toggle {
          display: none;
      }

      .sidebar-overlay {
          display: none;
      }
      
      .content {
          padding-left: 1.5rem;
      }
  }

  @media (max-width: 768px) {
      .header {
          padding: 1rem;
      }

      .content {
          padding: 1rem;
          padding-left: 1rem;
      }

      .page-title {
          font-size: 1.25rem;
      }
  }

    .auth-container {
      display: flex;
      min-height: 100vh;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      position: relative;
    }

    .carousel-section {
      flex: 1;
      max-width: 600px;
      margin-right: 2rem;
      display: none;
    }

    .carousel {
      position: relative;
      width: 100%;
      height: 400px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    .carousel-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
      background: linear-gradient(135deg, var(--color-primary), var(--color-dark-gray));
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      font-size: 1.5rem;
      font-weight: 600;
    }

    .carousel-slide.active {
      opacity: 1;
    }

    .carousel-slide:nth-child(1) {
      background: url('/1.webp');
      background-size: cover;
      background-position: center;
    }

    .carousel-slide:nth-child(2) {
      background: url('/2.webp');
      background-size: cover;
      background-position: center;
    }

    .carousel-slide:nth-child(3) {
      background: url('/3.webp');
      background-size: cover;
      background-position: center;
    }

    .carousel-slide:nth-child(4) {
      background: url('/4.webp');
      background-size: cover;
      background-position: center;
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      margin-top: 1rem;
      gap: 0.5rem;
    }

    .carousel-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.3);
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .carousel-dot.active {
      background: #000000;
    }

    .auth-card {
      max-width: 420px;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 24px;
      padding: 2.5rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(20px);
      text-align: center;
      position: relative;
      animation: slideInUp 0.6s ease-out;
    }

    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .auth-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 1.5rem;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--color-primary), #062740);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 2rem;
      box-shadow: 0 8px 24px rgba(11, 60, 102, 0.3);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    .auth-title { 
      font-size: 2rem; 
      font-weight: 700; 
      margin-bottom: 0.5rem; 
      color: var(--color-text);
      background: linear-gradient(135deg, var(--color-primary), var(--color-orange));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .auth-subtitle { 
      color: var(--color-gray); 
      margin-bottom: 2rem; 
      font-size: 1rem; 
      font-weight: 400;
    }
  
    .form-group { 
      margin-bottom: 1.5rem; 
      text-align: left; 
      position: relative;
    }

    .form-label { 
      display: block; 
      margin-bottom: 0.75rem; 
      font-weight: 600; 
      color: var(--color-dark-gray); 
      font-size: 0.95rem; 
    }

    .password-input-wrapper {
      position: relative;
      width: 100%;
    }

    .form-input { 
      width: 100%; 
      padding: 1rem 1.25rem; 
      padding-right: 3rem;
      border: 2px solid #e5e7eb; 
      border-radius: 16px; 
      font-size: 1rem; 
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.8);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 4px rgba(11, 60, 102, 0.1);
      background: var(--color-white);
      transform: translateY(-2px);
    }

    .form-input::placeholder {
      color: var(--color-gray);
      font-weight: 400;
    }

    .password-toggle {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--color-gray);
      cursor: pointer;
      padding: 0.5rem;
      font-size: 1rem;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .password-toggle:hover {
      color: var(--color-primary);
    }

    .password-toggle:focus {
      outline: none;
    }
  
    .btn-primary { 
      background: linear-gradient(135deg, var(--color-primary), #062740); 
      color: #fff; 
      border: none; 
      padding: 1rem 1.5rem; 
      border-radius: 16px; 
      cursor: pointer; 
      width: 100%; 
      font-weight: 600; 
      font-size: 1.1rem; 
      box-shadow: 0 8px 24px rgba(11, 60, 102, 0.3);
      transition: all 0.3s ease;
      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 { 
      background: linear-gradient(135deg, #062740, var(--color-primary)); 
      transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(11, 60, 102, 0.4);
    }

    .btn-primary:active {
      transform: translateY(-1px);
    }
  
    .error-box { 
      background: rgba(220, 53, 69, 0.1); 
      color: #8a1f2b; 
      border: 2px solid rgba(220, 53, 69, 0.2); 
      padding: 1rem 1.25rem; 
      border-radius: 12px; 
      margin-bottom: 1.5rem; 
      text-align: left; 
      font-size: 0.9rem;
      animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }
  
    .helper { 
      margin-top: 2rem; 
      text-align: center; 
      color: var(--color-gray); 
      font-size: 0.95rem;
    }

    .helper a { 
      color: var(--color-primary); 
      text-decoration: none; 
      font-weight: 600; 
      transition: all 0.3s ease;
      position: relative;
    }

    .helper a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -2px;
      left: 0;
      background: var(--color-primary);
      transition: width 0.3s ease;
    }

    .helper a:hover::after {
      width: 100%;
    }

    .helper a:hover { 
      color: var(--color-orange);
    }

    @media (min-width: 1024px) {
      .carousel-section {
        display: block;
      }
    }

    @media (max-width: 768px) {
      .auth-container {
        padding: 0.5rem;
      }

      .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0;
      }

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

      .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
      }

      .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
      }

      .btn-primary {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
      }

      .auth-title {
        font-size: 1.5rem;
      }

      .auth-subtitle {
        font-size: 0.9rem;
      }

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

      .form-input {
        padding: 0.75rem 0.875rem;
        border-radius: 12px;
      }

      .btn-primary {
        padding: 0.75rem 1rem;
        border-radius: 12px;
      }
    }
