:root {
  --auth-green: #2aa547;
  --auth-green-dark: #1f8a3a;
  --auth-green-soft: rgba(42, 165, 71, 0.18);
  --auth-green-shadow: rgba(16, 92, 46, 0.42);
  --auth-card: #ffffff;
  --auth-field: #eef4f0;
  --auth-text: #15271d;
  --auth-muted: #8aa093;
}

body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

body.login-page .container {
  max-width: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.auth-card {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  background: var(--auth-card);
  border: 1px solid rgba(20, 50, 35, 0.06);
  border-radius: 18px;
  box-shadow:
    0 22px 48px -16px rgba(18, 60, 40, 0.30),
    0 4px 14px rgba(18, 60, 40, 0.06);
  padding: 34px 28px 28px;
}

.auth-logo {
  display: block;
  width: 132px;
  max-width: 46%;
  height: auto;
  margin: 4px auto 10px;
}

.auth-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #1f3d2c;
}

.auth-input {
  display: block;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--auth-field);
  color: var(--auth-text);
  font-size: 16px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: var(--auth-muted);
}

.auth-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--auth-green);
  box-shadow: 0 0 0 4px var(--auth-green-soft);
}

.auth-pw {
  position: relative;
  margin-bottom: 14px;
}

.auth-pw .auth-input {
  margin-bottom: 0;
  padding-right: 52px;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-eye:hover {
  color: var(--auth-green-dark);
}

.auth-eye:active {
  background: rgba(20, 50, 35, 0.06);
}

.auth-eye svg {
  width: 22px;
  height: 22px;
}

.auth-eye svg[hidden] {
  display: none;
}

.auth-btn {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--auth-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-btn:hover {
  background: var(--auth-green-dark);
}

.auth-btn:active {
  background: var(--auth-green-dark);
}

.auth-error {
  min-height: 1.25em;
  margin: 14px 0 0;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .auth-input,
  .auth-eye,
  .auth-btn {
    transition: none;
  }
  .auth-btn:active {
    transform: none;
  }
}
