/* HotelXNet auth screens — from Html/login.html + Html/otp.html */
:root {
  --primary: var(--primary-600);
}
.input-group { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 10px;
  color: var(--gray-400); font-size: 12px;
  pointer-events: none;
  z-index: 1;
}
/* Left padding only when a leading icon is present (login). Password-only groups stay aligned with plain inputs. */
.input-group:has(.input-icon) .form-control { padding-left: 32px; }
.auth-password-group:not(:has(.input-icon)) .form-control {
  padding-left: 12px;
}
.auth-page .alert,
.otp-page .alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid;
  font-size: 13px; margin-bottom: 18px;
}
.auth-page .alert-info {
  background: var(--primary-50); border-color: var(--primary-100); color: var(--gray-700);
}
.auth-page .alert-info .alert-icon { color: var(--primary-600); flex-shrink: 0; margin-top: 2px; }
.auth-page .alert-danger {
  background: var(--danger-50); border-color: var(--danger-100); color: var(--danger-700);
}
.auth-page .alert-success {
  background: var(--success-100); border-color: rgba(22,163,74,0.25); color: #166534;
}


    .auth-page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.18), transparent 24%),
        #09111f;
    }

    .auth-shell {
      width: min(1080px, 100%);
      background: rgba(255, 255, 255, 0.98);
      border-radius: 28px;
      box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
      padding: 16px;
    }

    .auth-layout {
      display: grid;
      grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
      gap: 16px;
      min-height: 680px;
    }

    .auth-panel {
      padding: 34px 34px 28px;
      display: flex;
      flex-direction: column;
      border-radius: 22px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .auth-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 28px;
      color: var(--gray-900);
      text-decoration: none;
    }

    .auth-brand:hover {
      text-decoration: none;
    }

    .auth-brand-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary), var(--indigo));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      letter-spacing: -0.04em;
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }

    .auth-brand-name {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.1;
    }

    .auth-brand-sub {
      color: var(--gray-500);
      font-size: 12px;
      font-weight: 500;
      margin-top: 2px;
    }

    .auth-title {
      font-size: 34px;
      line-height: 1.05;
      font-weight: 800;
      color: var(--gray-900);
      letter-spacing: -0.04em;
      margin-bottom: 12px;
    }

    .auth-subtitle {
      color: var(--gray-500);
      font-size: 14px;
      max-width: 320px;
      margin-bottom: 28px;
    }

    .auth-form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .auth-form .form-group {
      margin-bottom: 0;
    }

    .auth-inline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 12px;
      color: var(--gray-500);
      margin-top: -4px;
    }

    .auth-checkbox {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;
    }

    .auth-checkbox input {
      accent-color: var(--primary);
    }

    .auth-link {
      font-weight: 600;
      color: var(--primary);
      text-decoration: none;
    }

    .auth-link:hover {
      text-decoration: underline;
    }

    .auth-submit {
      height: 44px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 700;
    }

    .auth-footer {
      margin-top: auto;
      padding-top: 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--gray-400);
      font-size: 12px;
    }

    .auth-hero {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.6)),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.24), transparent 20%),
        radial-gradient(circle at 70% 25%, rgba(236, 72, 153, 0.24), transparent 20%),
        radial-gradient(circle at 80% 75%, rgba(37, 99, 235, 0.22), transparent 24%),
        radial-gradient(circle at 30% 80%, rgba(34, 197, 94, 0.2), transparent 18%),
        linear-gradient(135deg, #111827 0%, #0f172a 50%, #172554 100%);
      min-height: 640px;
      color: #fff;
      padding: 34px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .auth-hero::before,
    .auth-hero::after {
      content: '';
      position: absolute;
      border-radius: 999px;
      filter: blur(2px);
      opacity: 0.95;
    }

    .auth-hero::before {
      width: 260px;
      height: 260px;
      top: -80px;
      right: -60px;
      background: radial-gradient(circle, rgba(251, 191, 36, 0.32), rgba(234, 88, 12, 0.08) 65%, transparent 70%);
    }

    .auth-hero::after {
      width: 300px;
      height: 300px;
      bottom: -110px;
      left: -70px;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.28), rgba(37, 99, 235, 0.06) 62%, transparent 72%);
    }

    .auth-hero-badge {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.18);
      color: rgba(255, 255, 255, 0.88);
      font-size: 12px;
      font-weight: 600;
      backdrop-filter: blur(14px);
    }

    .auth-hero-content {
      position: relative;
      z-index: 1;
      max-width: 430px;
    }

    .auth-hero-title {
      font-size: 42px;
      line-height: 1.02;
      letter-spacing: -0.05em;
      font-weight: 800;
      margin-bottom: 14px;
    }

    .auth-hero-copy {
      color: rgba(255, 255, 255, 0.78);
      font-size: 15px;
      margin-bottom: 24px;
    }

    .auth-highlights {
      display: grid;
      gap: 12px;
    }

    .auth-highlight {
      padding: 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.14);
      backdrop-filter: blur(14px);
    }

    .auth-highlight-value {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 6px;
      word-break: break-word;
    }

    .auth-highlight-label {
      color: rgba(255, 255, 255, 0.72);
      font-size: 12px;
    }

    .auth-hero-card {
      position: relative;
      z-index: 1;
      align-self: flex-end;
      width: min(320px, 100%);
      padding: 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
      backdrop-filter: blur(16px);
    }

    .auth-hero-card-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .auth-hero-list {
      display: grid;
      gap: 10px;
    }

    .auth-hero-list-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: rgba(255, 255, 255, 0.78);
      font-size: 13px;
    }

    .auth-hero-list-icon {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
    }

    .auth-demo {
      margin-bottom: 18px;
    }

    .auth-password-toggle {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      border: none;
      background: transparent;
      color: var(--gray-400);
      cursor: pointer;
      width: 26px;
      height: 26px;
      border-radius: 8px;
    }

    .auth-password-toggle:hover {
      background: var(--gray-100);
      color: var(--gray-700);
    }

    .auth-password-group .form-control {
      padding-right: 40px;
    }

/* Hide browser-native password reveal controls to avoid duplicate icons (notably MS Edge). */
.auth-password-group input::-ms-reveal,
.auth-password-group input::-ms-clear {
  display: none;
}

    @media (max-width: 980px) {
      .auth-layout {
        grid-template-columns: 1fr;
      }

      .auth-hero {
        min-height: 460px;
        order: -1;
      }

      .auth-hero-card {
        align-self: stretch;
      }
    }

    @media (max-width: 640px) {
      .auth-page {
        padding: 14px;
      }

      .auth-shell {
        padding: 10px;
        border-radius: 22px;
      }

      .auth-panel,
      .auth-hero {
        padding: 24px 20px;
        border-radius: 18px;
      }

      .auth-title {
        font-size: 28px;
      }

      .auth-hero-title {
        font-size: 32px;
      }

      .auth-highlights {
        grid-template-columns: 1fr;
      }

      .auth-footer {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    @media (max-width: 480px) {
      .auth-shell {
        padding: 8px;
      }

      .auth-panel,
      .auth-hero {
        padding: 20px 16px;
      }

      .auth-title {
        font-size: 24px;
      }

      .auth-hero-title {
        font-size: 28px;
      }

      .auth-inline {
        flex-direction: column;
        align-items: flex-start;
      }
    }
  

    .otp-page {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 28px 18px;
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(13, 148, 136, 0.18), transparent 24%),
        #09111f;
    }

    .otp-shell {
      width: min(1080px, 100%);
      display: grid;
      grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
      gap: 16px;
    }

    .otp-panel,
    .otp-side {
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 24px 72px rgba(2, 6, 23, 0.34);
    }

    .otp-panel {
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      padding: 34px;
      display: flex;
      flex-direction: column;
    }

    .otp-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 30px;
      color: var(--gray-900);
      text-decoration: none;
    }

    .otp-brand:hover {
      text-decoration: none;
    }

    .otp-brand-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--indigo));
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }

    .otp-brand-name {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.1;
    }

    .otp-brand-sub {
      color: var(--gray-500);
      font-size: 12px;
      margin-top: 2px;
    }

    .otp-step {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      margin-bottom: 18px;
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--primary-50);
      color: var(--primary-700);
      font-size: 12px;
      font-weight: 700;
    }

    .otp-title {
      font-size: 32px;
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.04em;
      color: var(--gray-900);
      margin-bottom: 12px;
    }

    .otp-subtitle {
      color: var(--gray-500);
      font-size: 14px;
      margin-bottom: 24px;
      max-width: 330px;
    }

    .otp-target {
      margin-bottom: 24px;
      padding: 14px 16px;
      border-radius: 14px;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      color: var(--gray-700);
      font-size: 13px;
    }

    .otp-target strong {
      color: var(--gray-900);
      display: block;
      margin-bottom: 4px;
    }

    .otp-inputs {
      position: relative;
      display: grid;
      grid-template-columns: repeat(6, 52px);
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 18px;
      max-width: 362px;
      cursor: text;
    }

    .otp-hidden-input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      border: none;
      padding: 0;
      margin: 0;
      cursor: text;
    }

    .otp-slot {
      height: 54px;
      border: 1px solid var(--gray-300);
      border-radius: 12px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 22px;
      font-weight: 700;
      color: var(--gray-900);
      transition: border-color .15s, box-shadow .15s, background .15s;
    }

    .otp-slot.active {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
      background: #fff;
    }

    .otp-slot.filled {
      border-color: var(--primary-100);
      background: var(--primary-50);
    }

    .otp-actions {
      display: grid;
      gap: 12px;
    }

    .otp-verify-btn {
      height: 46px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
    }

    .otp-verify-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      box-shadow: none;
    }

    .otp-helper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 12px;
      color: var(--gray-500);
      margin-top: 16px;
    }

    .otp-helper button,
    .otp-helper a {
      border: none;
      background: transparent;
      color: var(--primary);
      font-weight: 700;
      cursor: pointer;
      padding: 0;
      text-decoration: none;
    }

    .otp-helper button:hover,
    .otp-helper a:hover {
      text-decoration: underline;
    }

    .otp-note {
      margin-top: auto;
      padding-top: 28px;
      color: var(--gray-400);
      font-size: 12px;
    }

    .otp-side {
      position: relative;
      padding: 34px;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.6)),
        radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.24), transparent 20%),
        radial-gradient(circle at 75% 28%, rgba(236, 72, 153, 0.2), transparent 18%),
        radial-gradient(circle at 78% 82%, rgba(37, 99, 235, 0.24), transparent 24%),
        linear-gradient(135deg, #111827 0%, #0f172a 50%, #172554 100%);
    }

    .otp-side-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.18);
      font-size: 12px;
      font-weight: 700;
    }

    .otp-side-title {
      font-size: 40px;
      line-height: 1.02;
      letter-spacing: -0.05em;
      font-weight: 800;
      max-width: 440px;
      margin-bottom: 14px;
    }

    .otp-side-copy {
      color: rgba(255, 255, 255, 0.76);
      font-size: 15px;
      max-width: 460px;
    }

    .otp-side-card {
      width: min(360px, 100%);
      padding: 20px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
      backdrop-filter: blur(14px);
    }

    .otp-side-card-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .otp-side-list {
      display: grid;
      gap: 10px;
    }

    .otp-side-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: rgba(255, 255, 255, 0.8);
      font-size: 13px;
    }

    .otp-side-icon {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.14);
    }

    @media (max-width: 980px) {
      .otp-shell {
        grid-template-columns: 1fr;
      }

      .otp-side {
        min-height: 360px;
        order: -1;
      }
    }

    @media (max-width: 640px) {
      .otp-page {
        padding: 14px;
      }

      .otp-panel,
      .otp-side {
        border-radius: 18px;
        padding: 24px 20px;
      }

      .otp-title {
        font-size: 28px;
      }

      .otp-side-title {
        font-size: 30px;
      }

      .otp-inputs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: none;
        gap: 8px;
      }

      .otp-slot {
        height: 50px;
        font-size: 20px;
      }
    }

    @media (max-width: 480px) {
      .otp-panel,
      .otp-side {
        padding: 20px 16px;
        border-radius: 16px;
      }

      .otp-title {
        font-size: 24px;
      }

      .otp-side-title {
        font-size: 26px;
      }

      .otp-helper {
        flex-direction: column;
        align-items: flex-start;
      }
    }
  