/* =========================================================
   SIKASDA LOGIN
   ========================================================= */

:root {
  --login-primary: #1677d2;
  --login-primary-dark: #125fa8;

  --login-bg: #f1f5f9;

  --login-text: #182433;
  --login-muted: #6b7a90;
}

/* =========================================================
   BODY
   ========================================================= */

body {
  margin: 0;

  min-height: 100vh;

  background:
    radial-gradient(
      circle at top left,
      rgba(22, 119, 210, 0.08),
      transparent 35%
    ),
    var(--login-bg);

  color: var(--login-text);
}

/* =========================================================
   PAGE
   ========================================================= */

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

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px 20px;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.login-container {
  width: 100%;

  max-width: 1120px;

  min-height: 590px;

  display: grid;

  grid-template-columns:
    1.15fr
    0.85fr;

  position: relative;

  overflow: hidden;

  background: #fff;

  border-radius: 18px;

  box-shadow: 0 25px 70px rgba(20, 45, 75, 0.13);
}

/* =========================================================
   LEFT PANEL
   ========================================================= */
.login-brand-panel {
  position: relative;

  overflow: hidden;

  color: #fff;

  background-image:
    linear-gradient(135deg, rgba(8, 48, 82, 0.9), rgba(13, 76, 119, 0.78)),
    url("../images/login-bg.png");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}

/* Decorative circles */

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

  position: absolute;

  width: 360px;

  height: 360px;

  border-radius: 50%;

  top: -210px;

  left: -180px;

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

  pointer-events: none;
}

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

  position: absolute;

  width: 460px;

  height: 460px;

  border-radius: 50%;

  right: -260px;

  bottom: -280px;

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

  pointer-events: none;
}
/* =========================================================
   BRAND CONTENT
   ========================================================= */

.brand-content {
  position: relative;

  z-index: 2;

  height: 100%;

  padding: 42px;

  display: flex;

  flex-direction: column;
}

.brand-logo {
  display: flex;

  align-items: center;

  gap: 12px;
}

.logo-placeholder {
  width: 44px;

  height: 44px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 9px;

  color: #173b5d;

  background: #fff;
}

.brand-name {
  font-size: 18px;

  font-weight: 700;

  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 3px;

  font-size: 11px;

  opacity: 0.72;
}

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

.hero-content {
  margin-top: 150px;

  margin-bottom: 32px;

  max-width: 560px;
}

.hero-content h1 {
  max-width: 560px;

  margin: 0 0 18px;

  font-size: 36px;

  line-height: 1.12;

  font-weight: 700;

  letter-spacing: -0.7px;
}

.hero-content h1 span {
  color: #55c5ff;
}

.hero-content p {
  max-width: 530px;

  margin: 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: 13px;

  line-height: 1.7;
}

/* =========================================================
   FEATURES
   ========================================================= */

.feature-list {
  display: flex;

  gap: 10px;
}

.feature-item {
  flex: 1;

  min-height: 78px;

  display: flex;

  align-items: flex-start;

  gap: 10px;

  padding: 12px;

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

  border-radius: 10px;

  background: rgba(12, 57, 91, 0.48);

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);
}

.feature-icon {
  width: 32px;

  height: 32px;

  flex: 0 0 32px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 7px;

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

.feature-item strong {
  display: block;

  margin-bottom: 3px;

  font-size: 12px;
}

.feature-item small {
  display: block;

  color: rgba(255, 255, 255, 0.68);

  font-size: 10px;

  line-height: 1.4;
}

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

.login-form-panel {
  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px;

  background: #fff;
}

.login-card {
  width: 100%;

  max-width: 390px;

  padding: 32px;

  border-radius: 15px;

  background: #fff;

  box-shadow: 0 8px 30px rgba(30, 50, 70, 0.06);
}

/* =========================================================
   LOGIN ICON
   ========================================================= */

.login-icon {
  width: 62px;

  height: 62px;

  margin: 0 auto 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  color: var(--login-primary);

  background: #eaf4ff;
}

/* =========================================================
   HEADING
   ========================================================= */

.login-heading {
  text-align: center;

  margin-bottom: 28px;
}

.login-heading h2 {
  margin: 0 0 5px;

  font-size: 24px;

  font-weight: 700;
}

.login-heading p {
  margin: 0;

  color: var(--login-muted);

  font-size: 12px;
}

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

.form-label {
  font-size: 12px;

  font-weight: 600;
}

.form-control,
.form-select {
  min-height: 40px;

  font-size: 12px;

  border-radius: 7px;
}

.form-control::placeholder {
  color: #9aa7b6;
}

.btn-primary {
  min-height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  border: none;

  border-radius: 7px;

  font-size: 13px;

  font-weight: 600;

  background: var(--login-primary);
}

.btn-primary:hover {
  background: var(--login-primary-dark);
}

/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
  cursor: pointer;

  user-select: none;
}

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

/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  height: 44px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 22px;

  color: #91a0b3;

  font-size: 10px;

  border-top: 1px solid #edf0f3;

  background: #fff;
}

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

@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: 590px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 15px;
  }

  .login-container {
    min-height: auto;

    border-radius: 12px;
  }

  .login-form-panel {
    padding: 15px;

    min-height: 560px;
  }

  .login-card {
    padding: 25px 20px;

    box-shadow: none;
  }

  .login-footer {
    position: static;

    height: auto;

    padding: 15px;

    flex-direction: column;

    gap: 4px;
  }
}

/* =====================================================
   PASSWORD TOGGLE
   ===================================================== */

.password-toggle {
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 10;
}

.password-toggle svg {
  pointer-events: none;
}

/* =====================================================
   ALERT AUTO HIDE
   ===================================================== */

.pwa-login-alert {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.pwa-login-alert-hide {
  opacity: 0;
  transform: translateY(-6px);
}
