﻿:root {
  color-scheme: light;
  --primary: #2d5a27;
  --primary-dark: #1b3a1a;
  --text: #243126;
  --muted: #6c757d;
  --border: #ced4da;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text);
  background: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.login-container { display: flex; min-height: 100vh; min-height: 100svh; }
.login-form-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 40px;
  background: #fff;
  box-shadow: 10px 0 24px rgb(0 0 0 / 6%);
}
.form-signin { width: 100%; max-width: 400px; }
.brand-logo { margin-bottom: 30px; text-align: center; }
.brand-logo img { display: inline-block; width: 110px; height: auto; vertical-align: middle; }
.login-title {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.login-subtitle { margin: 0 0 32px; color: var(--muted); font-size: .95rem; text-align: center; }
.form-group { margin-bottom: 16px; }
label { display: inline-block; margin-bottom: 8px; }
input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus { outline: none; border-color: #4caf50; box-shadow: 0 0 0 .2rem rgb(76 175 80 / 22%); }
.btn-login {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: default;
}
.btn-login:focus-visible, .powered-by a:focus-visible { outline: 3px solid #4caf50; outline-offset: 4px; }
.powered-by { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 50px; color: #adb5bd; font-size: .85rem; }
.powered-by a { display: flex; align-items: center; justify-content: center; }
.powered-by img { display: block; width: 70px; height: auto; opacity: .72; }
.powered-by a:hover img { opacity: 1; }
.login-image-side {
  position: relative;
  flex: 1.5 1 0;
  min-width: 0;
  background: #12391c url("../img/topografia_login4.png") center / cover no-repeat;
}
.login-image-side::after { position: absolute; inset: 0; content: ""; background: linear-gradient(45deg, rgb(45 90 39 / 42%), rgb(27 58 26 / 20%)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 991.98px) {
  .login-image-side { display: none; }
  .login-form-side { padding: 32px 24px; box-shadow: none; }
  .form-signin { max-width: 420px; }
}
@media (max-width: 575.98px) {
  .login-form-side { padding: 24px 18px; }
  .brand-logo { margin-bottom: 24px; }
  .brand-logo img { width: 70px; }
  .login-title { font-size: 1.65rem; }
  .powered-by { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { input { transition: none; } }
