/* =========================================================
   SIKENDIN LOGIN
   ========================================================= */

.login-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: linear-gradient(135deg, #eef3f8 0%, #f8fafc 50%, #edf2f7 100%);
}

/* =========================================================
   LOGIN WRAPPER
   ========================================================= */

.login-wrapper {
  width: 100%;

  max-width: 1440px;

  overflow: hidden;

  border-radius: 20px;

  background: #fff;

  box-shadow: 0 25px 70px rgba(15, 35, 60, 0.12);

  border: 1px solid rgba(15, 35, 60, 0.06);
}

.login-main {
  display: flex;
  align-items: stretch;
}
/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer-wrapper {
  min-height: 58px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 0 30px;

  border-top: 1px solid #edf0f3;

  background: #fff;

  color: #98a2b3;

  font-size: 12px;
}
/* =========================================================
   LEFT PANEL
   ========================================================= */

.login-brand-panel {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(45, 142, 255, 0.25),
      transparent 35%
    ),
    linear-gradient(145deg, #102a43 0%, #163f63 50%, #0b2238 100%);

  color: #fff;
}

/* decorative background */

.login-brand-panel::before {
  content: "";
  position: absolute;

  width: 520px;
  height: 520px;

  right: -220px;
  bottom: -220px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
}

.login-brand-panel::after {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  left: -180px;
  top: -180px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.035);
}

.login-brand-content {
  position: relative;
  z-index: 2;

  height: 100%;

  display: flex;
  flex-direction: column;

  padding: 42px 50px;
}

/* =========================================================
   BRAND
   ========================================================= */

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-brand-logos img {
  height: 48px;
  width: auto;

  object-fit: contain;

  background: rgba(255, 255, 255, 0.95);

  border-radius: 10px;

  padding: 5px;
}

.login-brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-brand-subtitle {
  margin-top: 2px;

  font-size: 13px;

  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   HERO
   ========================================================= */

.login-hero {
  max-width: 650px;

  margin-top: auto;
  margin-bottom: auto;
}

.login-hero h1 {
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);

  line-height: 1.15;

  font-weight: 700;

  margin-bottom: 18px;
}

.login-hero h1 span {
  color: #5ec8ff;
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */

.login-features {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin-top: 30px;

  max-width: 600px;
}

.login-feature {
  padding: 14px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.09);

  backdrop-filter: blur(8px);
}

.login-feature-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  margin-bottom: 9px;

  background: rgba(255, 255, 255, 0.12);

  font-size: 18px;
}

.login-feature-title {
  font-weight: 600;

  margin-bottom: 4px;
}

.login-feature-text {
  font-size: 12px;

  line-height: 1.5;

  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 35px 40px;
}

.login-card {
  width: 100%;
  max-width: 500px;

  border: 0;

  border-radius: 18px;

  box-shadow: 0 20px 60px rgba(15, 35, 60, 0.1);
}

.login-card-body {
  padding: 48px;
}

.login-icon {
  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 25px;

  border-radius: 50%;

  background: #eaf3ff;

  color: #206bc4;

  font-size: 34px;
}

.login-title {
  text-align: center;

  font-size: 30px;

  font-weight: 700;

  color: #182433;

  margin-bottom: 8px;
}

.login-subtitle {
  text-align: center;

  color: #6c7a89;

  margin-bottom: 35px;
}

/* =========================================================
   FORM
   ========================================================= */

.login-form .form-label {
  font-weight: 600;
}

.login-input-group {
  position: relative;
}

.login-input-group .form-control {
  height: 48px;

  padding-right: 48px;

  border-radius: 9px;
}

.login-input-icon {
  position: absolute;

  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  color: #8290a2;

  pointer-events: none;

  z-index: 2;
}

.login-input-group.has-icon .form-control {
  padding-left: 44px;
}

.login-password-toggle {
  position: absolute;

  right: 8px;
  top: 50%;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  color: #8290a2;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;
}

.login-password-toggle:hover {
  background: #f1f4f8;

  color: #206bc4;
}

.login-submit {
  height: 50px;

  border-radius: 9px;

  font-size: 15px;

  font-weight: 600;
}

/* =========================================================
   ERROR
   ========================================================= */

.login-alert {
  border-radius: 9px;

  margin-bottom: 25px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575.98px) {
  .login-brand-content {
    padding: 25px 20px;
  }

  .login-brand-logos img {
    height: 40px;
  }

  .login-brand-name {
    font-size: 20px;
  }

  .login-hero {
    margin-top: 50px;
  }

  .login-hero h1 {
    font-size: 2rem;
  }

  .login-hero-description {
    max-width: 540px;

    font-size: 15px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.78);
  }

  .login-features {
    grid-template-columns: 1fr;
  }

  .login-form-panel {
    padding: 20px 15px 40px;
  }

  .login-card-body {
    padding: 30px 24px;
  }

  .login-title {
    font-size: 25px;
  }
}

/* =========================================================
   PWA INSTALL PROMO
   ========================================================= */

.pwa-install-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 20px;
  padding: 14px 15px;

  background: #f5f9ff;

  border: 1px solid rgba(var(--tblr-primary-rgb), 0.14);

  border-radius: 12px;
}

.pwa-install-promo-header {
  display: flex;
  align-items: center;

  gap: 12px;

  min-width: 0;
}

.pwa-install-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(var(--tblr-primary-rgb), 0.1);

  color: var(--tblr-primary);
}

.pwa-install-icon i {
  font-size: 21px;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;

  gap: 2px;

  min-width: 0;
}

.pwa-install-text strong {
  color: var(--tblr-body-color);

  font-size: 13px;
  font-weight: 700;
}

.pwa-install-text span {
  color: var(--tblr-secondary);

  font-size: 11px;
  line-height: 1.4;
}

.pwa-install-promo button {
  flex-shrink: 0;

  white-space: nowrap;

  border-radius: 8px;
}

/* =========================================================
   MOBILE LOGIN
   ========================================================= */

@media (max-width: 991.98px) {
  .login-brand-panel {
    display: none;
  }

  .login-main {
    display: block;
  }

  .login-form-panel {
    width: 100%;
    min-height: auto;

    padding: 16px;
  }

  .login-card {
    width: 100%;
    max-width: 420px;

    margin: 16px auto 0;
  }

  .login-footer-wrapper {
    padding: 16px;
    text-align: center;
  }
}
