
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --mint-50: #f2faf5;
  --mint-100: #e3f4e9;
  --mint-200: #c8e8d4;
  --mint-400: #73bd91;
  --mint-500: #399b65;
  --mint-600: #287b4c;
  --forest: #183b2b;
  --text: #26392e;
  --muted: #839188;
  --white: #ffffff;
  --border: #e7eee9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 8% 8%,
      #d3efdc 0%, transparent 35%),
    radial-gradient(ellipse at 92% 90%,
      #ccebd7 0%, transparent 34%),
    linear-gradient(135deg, #f4faf5, #e8f5ec);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--mint-600);
  text-decoration: none;
}

a:hover {
  color: var(--forest);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: var(--forest);
  font-family: 'Manrope', sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.brand-light {
  color: var(--mint-500);
  font-weight: 500;
}

.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--mint-600);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 5px 16px #315b4010;
}

.brand-icon svg {
  width: 35px;
  height: 35px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 24px 70px rgba(39, 89, 56, .09),
    0 3px 12px rgba(39, 89, 56, .035);
  backdrop-filter: blur(16px);
  animation: appear .55s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 4px var(--mint-100);
}

h1 {
  margin: 17px 0 9px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(27px, 5vw, 33px);
  line-height: 1.2;
  letter-spacing: -1.4px;
  color: var(--forest);
}

.mint-dot {
  color: var(--mint-500);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.field {
  margin-bottom: 21px;
}

.field > label,
.label-row label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #3c5144;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row a {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: #fbfdfb;
  color: var(--forest);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s,
              background .2s;
}

.field input::placeholder {
  color: #aab6ad;
}

.field input:focus {
  border-color: var(--mint-400);
  background: var(--white);
  box-shadow: 0 0 0 4px #73bd911c;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 49px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b9b90;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--mint-600);
  background: var(--mint-50);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 1px 0 25px;
  color: #68796e;
  font-size: 12px;
  cursor: pointer;
}

.remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1px solid #d5e2d8;
  border-radius: 5px;
  background: white;
  transition: background .2s, border-color .2s;
}

.remember input:checked + .custom-check {
  border-color: var(--mint-600);
  background: var(--mint-600);
}

.remember input:checked + .custom-check::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.remember input:focus-visible + .custom-check {
  outline: 3px solid var(--mint-200);
  outline-offset: 2px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(110deg,
    #338d59, #267749);
  box-shadow: 0 6px 14px #287b4c26;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s,
              filter .2s;
}

.login-button svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.login-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 9px 20px #287b4c30;
  transform: translateY(-1px);
}

.login-button:hover svg {
  transform: translateX(3px);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:focus-visible,
.password-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--mint-400);
  outline-offset: 3px;
}

.form-message {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color: #b33c42;
}

.form-message.success {
  color: var(--mint-600);
}

.divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 27px 0 22px;
  color: #9aa99f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #89988e;
  font-size: 11px;
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--mint-600);
}

.lock-icon svg {
  width: 15px;
  height: 15px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 27px;
  color: #8c9b91;
  font-size: 11px;
}

.footer a {
  color: #75897a;
}

.footer a:hover {
  color: var(--mint-600);
}

.footer-separator {
  color: #b5c6b9;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 25px 16px 20px;
  }

  .brand {
    margin-bottom: 23px;
    font-size: 25px;
  }

  .login-card {
    padding: 29px 23px;
    border-radius: 20px;
  }

  .footer {
    gap: 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

