  /* ==========================================================================
   Auth / Login — Admin & Employee tabbed login
   Self-contained stylesheet — no external utility framework dependency
   ========================================================================== */

  :root {
      --auth-primary: #fe3857;
      --auth-primary-dark: #ee7b32;
      --auth-primary-light: #eef2ff;
      --auth-bg-from: #ffffff;
      --auth-bg-to: #fff;
      --auth-card-bg: #ffffff;
      --auth-border: #e5e7eb;
      --auth-text: #1f2937;
      --auth-text-muted: #6b7280;
      --auth-text-faint: #9ca3af;
      --auth-danger: #dc2626;
      --auth-danger-bg: #fef2f2;
      --auth-success: #16a34a;
      --auth-success-bg: #f0fdf4;
      --auth-radius-lg: 18px;
      --auth-radius-md: 12px;
      --auth-radius-sm: 10px;
      --auth-shadow-card: 0 20px 45px -14px rgba(15, 23, 42, 0.071), 0 6px 16px -6px rgba(15, 23, 42, .08);
      --auth-transition: .3s cubic-bezier(.4, 0, .2, 1);
  }

  * {
      box-sizing: border-box;
  }

  #auth {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: linear-gradient(135deg, var(--auth-bg-from) 0%, var(--auth-bg-to) 100%);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  /* ---------- Card ---------- */

  .auth-card {
      width: 100%;
      max-width: 380px;
      background: var(--auth-card-bg);
      border: 1px solid var(--auth-border);
      border-radius: var(--auth-radius-lg);
      box-shadow: var(--auth-shadow-card);
      overflow: hidden;
  }

  .auth-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
      padding: 40px 32px 22px;
  }

  .auth-logo {
      width: 58px;
      height: 58px;
      object-fit: contain;
      background: #fff;
      border-radius: 14px;
      padding: 8px;
      box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
  }

  .auth-title {
      margin: 0;
      font-size: 19px;
      font-weight: 700;
      color: var(--auth-text);
      letter-spacing: .01em;
  }

  .auth-subtitle {
      margin: 0;
      max-width: 260px;
      font-size: 13.5px;
      line-height: 1.5;
      color: var(--auth-text-muted);
  }

  /* ---------- Tabs ---------- */

  .auth-tabs {
      position: relative;
      display: flex;
      margin: 0 32px 6px;
      padding: 4px;
      background: #f3f4f6;
      border-radius: var(--auth-radius-md);
  }

  .auth-tab {
      position: relative;
      z-index: 2;
      flex: 1;
      border: none;
      background: transparent;
      padding: 10px 0;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--auth-text-muted);
      border-radius: 9px;
      cursor: pointer;
      transition: color var(--auth-transition);
  }

  .auth-tab.is-active {
      color: #fff;
  }

  .auth-tab-indicator {
      position: absolute;
      top: 4px;
      left: 4px;
      z-index: 1;
      width: calc(50% - 4px);
      height: calc(100% - 8px);
      background: var(--auth-primary);
      border-radius: 9px;
      transition: transform var(--auth-transition);
  }

  .auth-tab-indicator.is-employee {
      transform: translateX(100%);
  }

  /* ---------- Sliding panels ---------- */

  /* ---------- Sliding panels ---------- */

  .auth-panels {
      position: relative;
      overflow: hidden;
      padding: 24px 32px 4px;
  }

  .auth-panels-track {
      display: flex;
      transition: transform var(--auth-transition );
      gap: 40px;
  }

  .auth-panels-track.is-employee {
      transform: translateX(calc(-100% - 40px));
  }

  .auth-panel {
      flex: 0 0 100%;
      min-width: 0;
      padding: 0 2px;
  }

  /* ---------- Form elements ---------- */

  .form-group {
      margin-bottom: 18px;
  }

  .form-group:last-of-type {
      margin-bottom: 0;
  }

  .form-label {
      display: block;
      margin-bottom: 6px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--auth-text);
      letter-spacing: .01em;
  }

  .form-control-wrap {
      position: relative;
  }

  .form-control {
      width: 100%;
      height: 46px;
      padding: 0 14px;
      background: #fafafa;
      border: 1.5px solid var(--auth-border);
      border-radius: var(--auth-radius-sm);
      font-size: 14px;
      color: var(--auth-text);
      transition: border-color var(--auth-transition), background var(--auth-transition), box-shadow var(--auth-transition);
  }

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

  .form-control:focus {
      outline: none;
      background: #fff;
      border-color: var(--auth-primary);
      box-shadow: 0 0 0 4px var(--auth-primary-light);
  }

  .form-control.has-icon {
      padding-right: 44px;
  }

  .password-toggle {
      position: absolute;
      top: 50%;
      right: 14px;
      transform: translateY(-50%);
      color: var(--auth-text-faint);
      font-size: 14px;
      cursor: pointer;
      transition: color var(--auth-transition);
  }

  .password-toggle:hover {
      color: var(--auth-text-muted);
  }

  /* ---------- Submit button ---------- */

  .auth-submit {
      width: 100%;
      height: 46px;
      margin-top: 26px;
      border: none;
      border-radius: var(--auth-radius-sm);
      background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
      color: #fff;
      font-size: 14.5px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .5);
      transition: transform var(--auth-transition), box-shadow var(--auth-transition), opacity .2s ease;
  }

  .auth-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .6);
  }

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

  .auth-submit:disabled {
      opacity: .7;
      cursor: not-allowed;
      transform: none;
  }

  /* ---------- Inline messages ---------- */

  .form-message {
      margin-top: 14px;
  }

  .form-alert {
      padding: 10px 14px;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 500;
  }

  .form-alert.is-danger {
      background: var(--auth-danger-bg);
      color: var(--auth-danger);
  }

  .form-alert.is-success {
      background: var(--auth-success-bg);
      color: var(--auth-success);
  }

  /* ---------- Footer link ---------- */

  .auth-footer {
      padding: 20px 32px 32px;
      text-align: center;
  }

  .auth-footer-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 18px;
      background: #fff;
      border: 1px solid var(--auth-border);
      border-radius: 999px;
      color: var(--auth-text-muted);
      font-size: 12.5px;
      font-weight: 600;
      text-decoration: none;
      transition: border-color var(--auth-transition), color var(--auth-transition);
  }

  .auth-footer-link:hover {
      border-color: var(--auth-primary);
      color: var(--auth-primary);
  }

  /* ---------- Responsive ---------- */

  @media (max-width: 480px) {
      .auth-header {
          padding: 32px 22px 18px;
      }

      .auth-tabs {
          margin: 0 22px 6px;
      }

      .auth-panels {
          padding: 20px 22px 4px;
      }

      .auth-footer {
          padding: 16px 22px 26px;
      }
  }