@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --text: #222222;
  --muted: #7a7a7a;
  --border: rgba(0, 0, 0, .08);
  --bg: #f7f7f7;
  --white: #ffffff;
  --accent: #00A243;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  min-height: 100vh;
}

.login-hero {
  background: #000;
}

.login-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  background: #fff;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
}

.login-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 24px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.field__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.field__error {
  color: #dc2626;
  font-size: 12px;
}

.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-size: 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, .2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  gap: 12px;
  margin-top: 24px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  gap: 8px;
  transition: filter 0.12s ease;
}

.btn--primary {
  width: 100%;
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  filter: brightness(0.95);
}

.btn--primary:active {
  filter: brightness(0.9);
}

.btn:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.login-terms {
  margin: 0;
  font-size: 13px;
  color: #8E8E8E;
  line-height: 1.5;
  margin-bottom: 24px;
}

.login-bottom {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.link {
  color: #8E8E8E;
  text-decoration: underline;
  font-weight: 500;
}

.link-black {
  color: #000000;
  text-decoration: underline;
  font-weight: 500;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .login-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .login-title {
    font-size: 24px;
  }
}
