:root {
  --primary: #6b0d77;
  --secondary: #8d0792;
  --tertiary: #e6a7e1;
  --blue: #330762;
}


/* Login UI - single screen (image left, form right) */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--primary) 100%);
  gap: 0;
  position: relative;
  isolation: isolate;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--primary) 100%);
  z-index: -1;
}

.login-left-panel {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-left-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
}

.login-brand-dot {
  width: 36px;
  height: 16px;
  border-radius: 8px;
  background: var(--secondary);
  position: relative;
}

.login-brand-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  right: 6px;
  top: 4px;
}

.login-brand-name {
  font-size: 15px;
  font-weight: 700;
}

.login-brand-tagline {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.7);
}

.login-brand-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

.login-left-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-left-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.18));
}

.login-right-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.login-right-inner {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 28px 32px;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.login-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue)  ;
}

.login-subheading {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px;
}

.login-field {
  margin-bottom: 20px;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 8px;
}

.login-input-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
  gap: 8px;
}

.login-input-row:focus-within {
  border-bottom-color: var(--blue);
}

.login-input-line {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 14px;
  outline: none;
}

.login-input-line::placeholder {
  color: #94a3b8;
}

.login-input-line:focus {
  outline: none;
}

.login-eye {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.login-eye:hover {
  color: var(--secondary);
}

.login-forgot {
  text-align: right;
  margin-bottom: 18px;
  font-size: 12px;
}

.login-forgot a {
  color: var(--primary);
  font-weight: 600;
}

.login-primary-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #6b0d77;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(132, 9, 156, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-primary-btn.loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button-loader {
  width: 22px;
  height: 22px;
}

.login-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(162, 34, 197, 0.35);
}

.login-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-footer-text {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 14px;
}

.login-footer-text a {
  color: #111827;
  font-weight: 600;
}

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

  .login-left-panel {
    padding: 36px 32px;
    min-height: 320px;
  }

  .login-right-panel {
    padding: 32px 24px 48px;
  }
}

@media (max-width: 768px) {
  .login-page {
    background: linear-gradient(180deg, #e6a7e1 0%, #6b0d77 100%);
  }

  .login-left-panel {
    padding: 28px 20px 16px;
    gap: 16px;
  }

  .login-left-image {
    max-width: 320px;
  }

  .login-right-panel {
    padding: 16px 20px 36px;
  }

  .login-right-inner {
    padding: 24px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .login-heading {
    font-size: 24px;
  }

  .login-subheading {
    font-size: 12px;
  }

  .login-primary-btn {
    height: 42px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-left-panel {
    padding: 24px 16px 10px;
  }

  .login-left-image {
    max-width: 260px;
  }

  .login-right-panel {
    padding: 12px 16px 28px;
  }

  .login-right-inner {
    padding: 20px 16px;
  }

  .login-input-line {
    font-size: 16px;
  }
}
