:root {
  --login-brand: #078b82;
  --login-brand-dark: #056b66;
  --login-ink: #142033;
  --login-muted: #667085;
  --login-line: #dce4ec;
  --login-surface: #ffffff;
  --login-bg: #eef3f7;
  --login-danger: #c93434;
  --login-danger-bg: #fff0f0;
  --login-success: #137a50;
  --login-success-bg: #eaf8f1;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Poppins, Arial, sans-serif;
  color: var(--login-ink);
  background: var(--login-bg);
}

button, input { font: inherit; }
a { text-decoration: none; }

.admin-login-page {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 38px);
  background:
    radial-gradient(circle at 8% 8%, rgba(7, 139, 130, .13), transparent 27%),
    radial-gradient(circle at 92% 92%, rgba(10, 58, 78, .10), transparent 30%),
    #eef3f7;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 76px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(209, 219, 229, .85);
  border-radius: 28px;
  background: var(--login-surface);
  box-shadow: 0 28px 80px rgba(31, 48, 66, .14);
}

.login-showcase {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(3, 104, 99, .96), rgba(4, 68, 78, .96)),
    #056b66;
}

.login-showcase::before,
.login-showcase::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.login-showcase::before {
  width: 390px;
  height: 390px;
  right: -170px;
  top: -140px;
  border: 70px solid rgba(255, 255, 255, .055);
}

.login-showcase::after {
  width: 300px;
  height: 300px;
  left: -190px;
  bottom: -175px;
  background: rgba(255, 255, 255, .055);
}

.showcase-brand,
.mobile-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
}

.showcase-brand span,
.mobile-brand span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 7px;
  overflow: hidden;
}

.showcase-brand span img,
.mobile-brand span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-brand span {
  background: rgba(255, 255, 255, .17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.showcase-brand strong,
.mobile-brand strong { font-size: 19px; }

.showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-block: 60px;
}

.showcase-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #8ee7df;
}

.showcase-copy h1 {
  max-width: 520px;
  margin: 17px 0 18px;
  font-size: clamp(34px, 4.2vw, 55px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.showcase-copy p {
  max-width: 525px;
  margin: 0;
  color: rgba(238, 255, 253, .78);
  font-size: 14px;
  line-height: 1.8;
}

.showcase-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.showcase-features div {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}

.showcase-features i { font-size: 20px; color: #a7f2eb; }
.showcase-features span { font-size: 11px; line-height: 1.45; }

.login-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
  background: #fff;
}

.login-card { width: min(420px, 100%); }
.mobile-brand { display: none; color: var(--login-ink); }
.mobile-brand span { color: #fff; background: #fff; }

.login-heading > span {
  display: block;
  margin-bottom: 9px;
  color: var(--login-brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.login-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.login-heading p {
  margin: 10px 0 29px;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.6;
}

.login-messages { display: grid; gap: 8px; margin-bottom: 20px; }

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--login-success);
  background: var(--login-success-bg);
  font-size: 11px;
  line-height: 1.5;
}

.login-alert.error,
.login-alert.danger {
  color: var(--login-danger);
  background: var(--login-danger-bg);
}

.form-group { margin-bottom: 19px; }

.form-group > label,
.field-heading label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.field-heading label { margin: 0; }

.field-heading a {
  color: var(--login-brand);
  font-size: 11px;
  font-weight: 600;
}

.field-heading a:hover { color: var(--login-brand-dark); }

.input-control {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-control:focus-within {
  border-color: var(--login-brand);
  box-shadow: 0 0 0 4px rgba(7, 139, 130, .11);
}

.input-control > i {
  flex: 0 0 auto;
  margin-left: 16px;
  color: #8692a3;
  font-size: 17px;
  transition: color .2s ease;
}

.input-control:focus-within > i { color: var(--login-brand); }

.input-control input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 15px 0 12px;
  border: 0;
  outline: 0;
  color: var(--login-ink);
  background: transparent;
  font-size: 13px;
}

.input-control input::placeholder { color: #98a2b3; }
.password-control input { padding-right: 7px; }

.password-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 5px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #718096;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--login-brand);
  background: #edf9f7;
  outline: 0;
}

.remember-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #596579;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.remember-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.checkmark {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  transition: .18s ease;
}

.checkmark i { font-size: 13px; }

.remember-control input:checked + .checkmark {
  border-color: var(--login-brand);
  color: #fff;
  background: var(--login-brand);
}

.remember-control input:focus-visible + .checkmark {
  box-shadow: 0 0 0 4px rgba(7, 139, 130, .12);
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #07978d, #05766f);
  box-shadow: 0 11px 24px rgba(5, 118, 111, .23);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(5, 118, 111, .28);
  filter: brightness(1.03);
}

.login-submit:active { transform: translateY(0); }
.login-submit:disabled { cursor: wait; opacity: .78; }
.login-submit i { transition: transform .2s ease; }
.login-submit:hover i { transform: translateX(3px); }

.login-support {
  margin: 22px 0 0;
  color: #98a2b3;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 920px) {
  .admin-login-page { padding: 18px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 36px); }
  .login-showcase { display: none; }
  .login-panel { padding: clamp(28px, 8vw, 60px); }
  .mobile-brand { display: inline-flex; margin-bottom: 40px; }
}

@media (max-width: 520px) {
  .admin-login-page { padding: 0; background: #fff; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-panel { align-items: start; padding: 30px 22px; }
  .mobile-brand { margin-bottom: 44px; }
  .mobile-brand span { width: 43px; height: 43px; border-radius: 12px; }
  .mobile-brand strong { font-size: 17px; }
  .login-heading h2 { font-size: 28px; }
  .login-heading p { margin-bottom: 26px; }
  .input-control { min-height: 50px; }
  .input-control input { height: 48px; }
  .login-submit { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
