/* Nkabom auth shell — split executive sign-in (reference-aligned) */
:root {
  --nk-auth-green: #005043;
  --nk-auth-green-deep: #00332a;
  --nk-auth-green-soft: #0d7a66;
  --nk-auth-input-bg: #f3f4f6;
  --nk-auth-text: #111827;
  --nk-auth-muted: #6b7280;
  --nk-auth-radius: 10px;
  --nk-auth-radius-btn: 12px;
}

.nk-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--nk-auth-text);
  background: #fff;
}

@media (min-width: 992px) {
  .nk-auth-page {
    flex-direction: row;
  }
}

.nk-auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem 2.5rem;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 992px) {
  .nk-auth-left {
    flex: 1 1 50%;
    max-width: none;
    margin: 0;
    padding: 3rem 3.5rem 3rem 4rem;
  }
}

.nk-auth-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nk-auth-green);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  display: inline-block;
}

.nk-auth-brand:hover {
  color: var(--nk-auth-green-deep);
}

.nk-auth-brand img {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.nk-auth-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--nk-auth-text);
}

.nk-auth-lead {
  font-size: 0.95rem;
  color: var(--nk-auth-muted);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 26rem;
}

.nk-auth-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--nk-auth-text);
  margin-bottom: 0.45rem;
}

.nk-auth-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.nk-auth-row-label .nk-auth-label {
  margin-bottom: 0;
}

.nk-auth-forgot {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nk-auth-green);
  text-decoration: none;
  white-space: nowrap;
}

.nk-auth-forgot:hover {
  color: var(--nk-auth-green-deep);
  text-decoration: underline;
}

.nk-auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--nk-auth-radius);
  background: var(--nk-auth-input-bg);
  font-size: 0.95rem;
  color: var(--nk-auth-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nk-auth-input::placeholder {
  color: #9ca3af;
}

.nk-auth-input:focus {
  outline: none;
  border-color: rgba(0, 80, 67, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 80, 67, 0.12);
}

.nk-auth-field {
  margin-bottom: 1.15rem;
}

.nk-auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.35rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.nk-auth-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--nk-auth-green);
  cursor: pointer;
}

.nk-auth-submit {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--nk-auth-radius-btn);
  background: var(--nk-auth-green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.nk-auth-submit:hover {
  background: var(--nk-auth-green-deep);
  color: #fff;
}

.nk-auth-footer-line {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--nk-auth-muted);
  text-align: center;
}

@media (min-width: 992px) {
  .nk-auth-footer-line {
    text-align: left;
  }
}

.nk-auth-footer-line a {
  color: var(--nk-auth-green);
  font-weight: 700;
  text-decoration: none;
}

.nk-auth-footer-line a:hover {
  text-decoration: underline;
}

/* Demo accounts block */
.nk-auth-demo {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.nk-auth-demo-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--nk-auth-radius);
  background: #fafafa;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}

.nk-auth-demo-toggle:hover {
  background: #f3f4f6;
}

.nk-auth-demo-chevron {
  transition: transform 0.2s ease;
}

.nk-auth-demo-toggle[aria-expanded="true"] .nk-auth-demo-chevron {
  transform: rotate(180deg);
}

.nk-auth-demo .form-label.small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

/* Right panel */
.nk-auth-right {
  display: none;
  flex: 1 1 50%;
  position: relative;
  background: linear-gradient(
    165deg,
    var(--nk-auth-green) 0%,
    var(--nk-auth-green-deep) 45%,
    #001f1a 100%
  );
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .nk-auth-right {
    display: flex;
  }
}

.nk-auth-right::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.nk-auth-right-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.nk-auth-visual {
  position: relative;
  width: min(280px, 85vw);
  height: min(280px, 85vw);
  margin-bottom: 2rem;
}

.nk-auth-visual-bg {
  position: absolute;
  inset: 8% 2% auto auto;
  width: 88%;
  height: 88%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(8deg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nk-auth-visual-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(15, 118, 110, 0.5) 0%,
    rgba(0, 50, 42, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.nk-auth-visual-card iconify-icon {
  font-size: 6rem;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(45, 212, 191, 0.35));
}

.nk-auth-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 22rem;
  color: #fff;
}

.nk-auth-hero-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.75rem;
  max-width: 24rem;
}

.nk-auth-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 243, 208, 0.55);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: default;
}

.nk-auth-right-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nk-auth-right-foot a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 1rem;
}

.nk-auth-right-foot a:hover {
  text-decoration: underline;
}

/* Landing variant */
.nk-auth-landing-btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.nk-auth-landing-btns + .nk-auth-footer-line {
  margin-top: 2rem;
}

.nk-auth-btn-primary {
  display: block;
  text-align: center;
  padding: 0.9rem 1.25rem;
  border-radius: var(--nk-auth-radius-btn);
  background: var(--nk-auth-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nk-auth-btn-primary:hover {
  background: var(--nk-auth-green-deep);
  color: #fff !important;
}

.nk-auth-btn-ghost {
  display: block;
  text-align: center;
  padding: 0.9rem 1.25rem;
  border-radius: var(--nk-auth-radius-btn);
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--nk-auth-text) !important;
  font-weight: 600;
  text-decoration: none;
}

.nk-auth-btn-ghost:hover {
  background: #f9fafb;
  color: var(--nk-auth-green) !important;
  border-color: var(--nk-auth-green);
}

/* Hide theme preloader clash */
body.nk-auth-body .preloader {
  display: none !important;
}
