 /* roboto-regular - latin */
    @font-face {
      font-display: swap;
      font-family: 'Roboto';
      font-style: normal;
      font-weight: 400;
      src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
    }
    /* roboto-500 - latin */
    @font-face {
      font-display: swap;
      font-family: 'Roboto';
      font-style: normal;
      font-weight: 500;
      src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2') format('woff2');
    }
    /* roboto-600 - latin */
    @font-face {
      font-display: swap;
      font-family: 'Roboto';
      font-style: normal;
      font-weight: 600;
      src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2') format('woff2');
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Roboto", sans-serif;
    }

    :root {
      --primary: #9da800;
      --primary-dark: #1e1e27;
      --secondary: #f9fafb;
      --dark: #1e293b;
      --light: #f8fafc;
      --success: #10b981;
      --error: #ef4444;
      --border: #e2e8f0;
      --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
      --glass: rgba(255, 255, 255, 0.8);
      --glass-border: rgba(255, 255, 255, 0.2);
    }

    body {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      color: var(--dark);
      background: #f1f5f9; /* Subtle background color */
    }

    /* Custom Alert Modal Styles */
    .alert-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(8px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .alert-modal.show {
      opacity: 1;
      visibility: visible;
    }

    .alert-content {
      background: white;
      padding: 2.8vw;
      border-radius: 1.6vw;
      width: 90%;
      max-width: 28vw;
      text-align: center;
      box-shadow: 0 1.4vw 2.8vw rgba(0, 0, 0, 0.2);
      transform: scale(0.8);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .alert-modal.show .alert-content {
      transform: scale(1);
    }

    .alert-icon {
      font-size: 3.5vw;
      color: var(--primary);
      margin-bottom: 1.4vw;
    }

    .alert-content h3 {
      font-size: 1.5vw;
      margin-bottom: 0.8vw;
      color: var(--dark);
    }

    .alert-content p {
      color: #64748b;
      margin-bottom: 2.1vw;
      line-height: 1.5;
      font-size: 1vw;
    }

    .alert-btn {
      width: 100%;
      padding: 1vw;
      border: none;
      background: var(--primary);
      color: white;
      font-weight: 600;
      border-radius: 0.8vw;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1vw;
    }

    .alert-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .back-home {
      position: fixed;
      top: 2vw;
      left: 2vw;
      display: flex;
      align-items: center;
      gap: 0.7vw;
      padding: 0.8vw 1.4vw;
      background: white;
      color: var(--dark);
      text-decoration: none;
      font-weight: 600;
      border-radius: 0.8vw;
      box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.1);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 1000;
      border: 0.07vw solid var(--border);
      font-size: 1vw;
    }

    .back-home:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(157, 168, 0, 0.3);
      border-color: var(--primary);
    }

    .back-home i {
      font-size: 1.1vw;
    }

    .auth-container {
      width: 90vw;
      max-width: 65vw;
      min-height: 40vw;
      border-radius: 2vw;
      overflow: hidden;
      display: flex;
      position: relative;
      box-shadow: var(--shadow);
      background: white;
    }

    .form-panel {
      width: 50%;
      padding: 3.5vw 2.8vw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: var(--glass);
      backdrop-filter: blur(10px);
      border: 1px solid var(--glass-border);
      z-index: 10;
      transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .form {
      display: none;
      flex-direction: column;
      gap: 1.5vw;
    }

    .form.active {
      display: flex;
      animation: fadeIn 0.6s ease;
    }

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

    .form h2 {
      font-size: 2.22vw;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 0.5vw;
    }

    .form p {
      color: #64748b;
      margin-bottom: 1.6vw;
      font-size: 1vw;
    }

    .input-group {
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .input-group label {
      margin-bottom: 0.5vw;
      font-size: 0.9vw;
      font-weight: 500;
      color: var(--dark);
    }

    .input-with-icon {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-group input {
      padding: 0.9vw 3vw 0.9vw 3vw; /* Add padding for icons on both sides */
      border: 0.14vw solid var(--border);
      border-radius: 0.9vw;
      font-size: 1vw;
      transition: all 0.3s ease;
      background: white;
      width: 100%;
    }

    .input-group .input-icon {
      position: absolute;
      left: 1.1vw;
      top: 50%;
      color: #94a3b8;
      transform: translateY(-50%);
      font-size: 1.1vw;
      z-index: 5;
    }

    .toggle-password {
      position: absolute;
      right: 1.1vw;
      top: 50%;
      color: #94a3b8;
      transform: translateY(-50%);
      font-size: 1.1vw;
      cursor: pointer;
      z-index: 100;
      background: transparent;
      padding: 0.5vw;
      pointer-events: auto; /* Force clickability */
    }

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

    .error-message {
      font-size: 0.75vw;
      color: var(--error);
      margin-top: 0.3vw;
      display: none;
      font-weight: 500;
      text-transform: none;
      line-height: normal;
    }

    .options {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9vw;
      gap: 0.5vw;
    }

    .options .error-message {
      flex-basis: 100%;
      order: 3;
    }

    .custom-check.error .checkmark {
      border-color: var(--error);
      box-shadow: 0 0 0 0.2vw rgba(239, 68, 68, 0.2);
    }

    .custom-check {
      display: flex;
      align-items: center;
      gap: 0.6vw;
      cursor: pointer;
      position: relative;
    }

    .custom-check input {
      display: none;
    }

    .checkmark {
      width: 1.25vw;
      height: 1.25vw;
      border: 0.14vw solid var(--border);
      border-radius: 0.4vw;
      background: white;
      transition: all 0.3s ease;
      display: inline-block;
      position: relative;
    }

    .custom-check input:checked ~ .checkmark {
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 0.3vw 0.8vw rgba(157, 168, 0, 0.3);
    }

    .custom-check input:checked ~ .checkmark::after {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      font-size: 0.75vw;
      color: white;
    }

    .options a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .options a:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }

    .auth-btn {
      padding: 1vw;
      border: none;
      background: linear-gradient(to right, var(--primary), var(--primary-dark));
      color: white;
      font-size: 1.1vw;
      font-weight: 600;
      border-radius: 1vw;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 0.3vw 0.4vw -0.1vw rgba(99, 102, 241, 0.3);
    }

    .auth-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
    }

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

    .terms {
      display: flex;
      align-items: center;
      gap: 0.6vw;
      font-size: 0.9vw;
      margin-top: 0.6vw;
    }

    .terms a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }

    .toggle-panel {
      width: 50%;
      background: linear-gradient(135deg, #99a905, #445301);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      z-index: 20; /* Increased to avoid overlap blocking */
      transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .toggle-content {
      text-align: center;
      padding: 2.8vw;
      max-width: 80%;
    }

    .toggle-left,
    .toggle-right {
      display: none;
    }

    .auth-container.active .toggle-left {
      display: none;
    }

    .auth-container.active .toggle-right {
      display: block;
      animation: slideIn 0.8s ease;
    }

    .auth-container:not(.active) .toggle-left {
      display: block;
      animation: slideIn 0.8s ease;
    }

    .auth-container:not(.active) .toggle-right {
      display: none;
    }

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

    .toggle-content h3 {
      font-size: 1.8vw;
      font-weight: 600;
      margin-bottom: 1.1vw;
    }

    .toggle-content p {
      font-size: 1.1vw;
      margin-bottom: 2.1vw;
      line-height: 1.6;
    }

    .ghost-btn {
      padding: 1vw 2.2vw;
      background: transparent;
      border: 0.14vw solid white;
      color: white;
      font-size: 1.1vw;
      font-weight: 600;
      border-radius: 1vw;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .ghost-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.1);
    }

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

    /* Active State Switch */
    .auth-container.active .form-panel {
      transform: translateX(100%);
    }

    .auth-container.active .toggle-panel {
      transform: translateX(-100%);
    }

    .logo {
      text-align: center;
      margin-bottom: 30px;
    }

    .logo i {
      font-size: 3.5rem;
      color: var(--primary);
      margin-bottom: 16px;
    }

    .logo h1 {
      font-size: 2.5rem;
      font-weight: 700;
      background: linear-gradient(to right, #4f46e5, #7c3aed);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Responsive Design */
    @media screen and (max-width: 768px) {
      .auth-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
      }

      .form-panel,
      .toggle-panel {
        width: 100%;
        height: auto;
        position: relative;
        transform: none !important;
      }

      .toggle-panel {
        padding: 30px;
        order: 2;
      }

      .form-panel {
        padding: 40px 25px;
        order: 1;
      }

      .auth-container.active .toggle-panel {
        order: 1;
      }

      .auth-container.active .form-panel {
        order: 2;
      }

      .toggle-content {
        max-width: 100%;
      }
    }

    @media screen and (max-width: 480px) {
      .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .form h2 {
        font-size: 1.8rem;
      }

      .toggle-content h3 {
        font-size: 1.5rem;
      }

      .toggle-content p {
        font-size: 1rem;
      }
    }