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

  --lime: #c8f24a;
  --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;
}

body {
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(200, 242, 74, 0.2),
      transparent 31%
    ),
    var(--cream);

  color: var(--text);

  font-family:
    "DM Sans",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

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

.auth-page {
  min-height: 100vh;
}

.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;
}

.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;
}

.back-link {
  display: grid;
  place-items: 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;
}

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

.recovery-main {
  display: grid;
  place-items: center;

  padding:
    28px 20px 48px;
}

.recovery-panel {
  width: min(480px, 100%);

  padding: 34px 38px;

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

  border-radius: 26px;

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

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

  width: 58px;
  height: 58px;

  margin-bottom: 18px;

  border-radius: 17px;

  background: var(--green-900);
}

.recovery-icon svg {
  width: 26px;
  height: 26px;

  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: block;

  margin-bottom: 10px;

  color: var(--green-700);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.recovery-panel h1 {
  margin: 0;

  color: var(--green-950);

  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.intro-copy {
  margin: 10px 0 22px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.65;
}

.form-alert {
  margin-bottom: 20px;
  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;
}

.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;
}

.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 small {
  display: block;

  margin-top: 7px;

  color: #82928c;

  font-size: 10px;
  line-height: 1.5;
}

.password-field {
  position: relative;
}

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

.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;

  padding: 0 19px;

  border: 0;
  border-radius: 12px;

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

  font-weight: 800;

  cursor: pointer;

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

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

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

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

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

  padding: 0 15px;

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

  border-radius: 11px;

  color: var(--green-900);

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

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

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

.panel-footer {
  display: flex;
  justify-content: center;
  gap: 5px;

  margin-top: 20px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 11px;
}

.panel-footer a {
  color: var(--green-700);
  font-weight: 800;
}

.development-reset {
  margin-top: 22px;
  padding: 18px;

  border: 1px dashed
    rgba(8, 60, 47, 0.28);

  border-radius: 14px;

  background: #f7faf6;
}

.development-reset > span {
  display: block;

  margin-bottom: 7px;

  color: var(--green-700);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.development-reset strong {
  display: block;

  color: var(--green-950);

  font-size: 13px;
}

.development-reset p {
  margin: 7px 0 14px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.55;
}

.success-panel {
  text-align: center;
}

.success-check {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  margin: 0 auto 17px;

  border-radius: 50%;

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

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

.success-panel strong {
  display: block;

  color: var(--green-950);

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

.success-panel p {
  margin: 10px 0 20px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.6;
}

@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;
  }

  .recovery-main {
    padding:
      32px 14px 60px;
  }

  .recovery-panel {
    padding: 28px 21px;
    border-radius: 20px;
  }

  .recovery-panel h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    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 */
