:root {
  --green-950: #062f25;
  --green-900: #083c2f;
  --green-800: #0b4c3b;
  --green-700: #146047;
  --green-600: #1c7253;

  --lime: #c8f24a;
  --lime-soft: #e8f9ac;

  --cream: #f5f6ef;
  --white: #ffffff;
  --text: #17332b;
  --muted: #677a73;
  --line: #dce5df;

  --danger-bg: #fff1f1;
  --danger-border: #efb5b5;
  --danger-text: #a32626;

  --success-bg: #eef9f1;
  --success-border: #b8dfc2;
  --success-text: #1b6836;

  --shadow:
    0 24px 70px rgba(7, 52, 41, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(200, 242, 74, 0.18),
      transparent 30%
    ),
    var(--cream);

  color: var(--text);
  font-family:
    "DM Sans",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 92px;
  padding: 18px 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--green-900),
      var(--green-700)
    );

  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--green-950);
  font-size: 16px;
  font-weight: 800;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 17px;

  border: 1px solid
    rgba(8, 60, 47, 0.18);
  border-radius: 999px;

  color: var(--green-900);
  font-size: 12px;
  font-weight: 700;

  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.back-link:hover {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.auth-main {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(430px, 0.72fr);

  gap: 64px;

  width: min(1240px, calc(100% - 80px));
  margin: 20px auto 48px;
  align-items: center;
}

.auth-intro {
  padding: 12px 20px 12px 0;
}

.eyebrow {
  display: inline-flex;

  margin-bottom: 18px;

  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-intro h1 {
  max-width: 650px;
  margin: 0;

  color: var(--green-950);
  font-size:
    clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.auth-intro h1 span {
  color: var(--green-600);
}

.auth-intro > p {
  max-width: 600px;
  margin: 28px 0 0;

  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.intro-features {
  display: grid;
  gap: 14px;

  max-width: 620px;
  margin-top: 42px;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;

  padding: 19px 21px;

  border: 1px solid
    rgba(8, 60, 47, 0.09);
  border-radius: 18px;

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

  backdrop-filter: blur(12px);
}

.feature-icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  border-radius: 14px;

  background: var(--green-900);
  color: var(--lime);

  font-size: 12px;
  font-weight: 800;
}

.feature-item strong {
  display: block;

  margin-bottom: 5px;

  color: var(--green-950);
  font-size: 14px;
  font-weight: 800;
}

.feature-item p {
  margin: 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-panel {
  padding: 40px;

  border: 1px solid
    rgba(8, 60, 47, 0.08);
  border-radius: 26px;

  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-top {
  margin-bottom: 30px;
}

.panel-label {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.panel-top h2 {
  margin: 0;

  color: var(--green-950);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.panel-top p {
  margin: 9px 0 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-alert {
  margin-bottom: 19px;
  padding: 13px 15px;

  border: 1px solid
    var(--danger-border);
  border-radius: 12px;

  background: var(--danger-bg);
  color: var(--danger-text);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.form-alert.success {
  border-color:
    var(--success-border);

  background:
    var(--success-bg);

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

.form-field {
  margin-bottom: 21px;
}

.form-field label {
  display: inline-block;

  margin-bottom: 8px;

  color: var(--green-950);
  font-size: 12px;
  font-weight: 800;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.forgot-link {
  margin-bottom: 8px;

  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.forgot-link:hover {
  text-decoration: underline;
}

.form-field input {
  width: 100%;
  min-height: 52px;

  padding: 0 15px;

  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;

  background: #fbfcfa;
  color: var(--green-950);

  font-size: 14px;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.form-field input:focus {
  border-color: var(--green-600);

  background: var(--white);

  box-shadow:
    0 0 0 3px
    rgba(28, 114, 83, 0.1);
}

.form-field input::placeholder {
  color: #9aaca5;
}

.form-field small {
  display: block;

  margin-top: 7px;

  color: #82928c;
  font-size: 10px;
  line-height: 1.5;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;

  min-width: 54px;
  min-height: 36px;

  transform:
    translateY(-50%);

  border: 0;
  border-radius: 9px;

  background: transparent;
  color: var(--green-700);

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;
}

.password-toggle:hover {
  background:
    rgba(8, 60, 47, 0.07);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 54px;
  margin-top: 9px;

  padding: 0 19px;

  border: 0;
  border-radius: 12px;

  background: var(--green-900);
  color: var(--white);

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--green-700);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 26px 0 18px;

  color: #8b9a94;
  font-size: 11px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: var(--line);
}

.secondary-button {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 50px;

  border: 1px solid var(--green-900);
  border-radius: 12px;

  color: var(--green-900);

  font-size: 13px;
  font-weight: 800;

  transition:
    background 160ms ease,
    color 160ms ease;
}

.secondary-button:hover {
  background: var(--green-900);
  color: var(--white);
}

.security-note {
  margin: 18px 0 0;

  color: #8b9a94;

  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .auth-header {
    padding:
      18px 28px;
  }

  .auth-main {
    grid-template-columns: 1fr;

    width:
      min(720px, calc(100% - 48px));

    margin-top: 18px;
  }

  .auth-intro {
    padding-right: 0;
  }

  .auth-intro h1 {
    max-width: 620px;
  }
}

@media (max-width: 600px) {
  .auth-header {
    min-height: 78px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    display: none;
  }

  .back-link {
    min-height: 38px;
    padding: 0 13px;

    font-size: 10px;
  }

  .auth-main {
    width: calc(100% - 28px);
    gap: 32px;

    margin:
      18px auto 42px;
  }

  .auth-intro h1 {
    font-size:
      clamp(38px, 13vw, 55px);
  }

  .auth-intro > p {
    font-size: 15px;
  }

  .feature-item {
    padding: 16px;
  }

  .auth-panel {
    padding: 27px 20px;

    border-radius: 20px;
  }

  .panel-top h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* ============================================================
   EMV-WEB-GLOBAL-HEADER-A001-R1B-R2
   HEADER LOGO - EXACT DASHBOARD SIZE MODEL
   ============================================================ */

.emv-header-logo {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  object-fit: contain;
}

/* END EMV-WEB-GLOBAL-HEADER-A001-R1B-R2 */
