:root {
  --brand: #99CC33;
  --brand-dark: #7FA82A;
  --brand-text: #5C7A1F;
  --ink: #333333;
  --muted: #5C6058;
  --border: #CCCCCC;
  --bg: #FFFFFF;
  --bg-page: #F6F7F5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
}
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--ink); }
.screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.brandrow { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.brandrow img { height: 56px; width: auto; display: block; }
.card { width: 100%; max-width: 960px; background: var(--bg); border-radius: 16px; box-shadow: 0 20px 60px rgba(51, 51, 51, 0.12); overflow: hidden; display: flex; }
.pane-form { flex: 1 1 55%; padding: 56px 56px 40px; display: flex; flex-direction: column; }
h1.title { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
p.subtitle { margin: 0 0 32px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input-wrap { position: relative; }
input[type=text], input[type=password] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; color: var(--ink); background: var(--bg); outline: none; font-family: inherit;
}
input::placeholder { color: var(--muted); }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(153, 204, 51, 0.12); }
.eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; display: flex; padding: 2px; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 26px; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.remember input { width: 16px; height: 16px; accent-color: var(--brand); }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--brand); color: var(--ink); border: none; border-radius: 9px;
  padding: 13px 16px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--brand-dark); }
.helpline { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.footnote { margin-top: auto; padding-top: 28px; font-size: 12px; color: var(--muted); text-align: center; }
.form-errors { background: #FBEAE8; color: #B7402C; border-radius: 9px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.pane-cover {
  flex: 1 1 45%; background: var(--ink); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; color: #fff;
}
.pane-cover .content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.pane-cover .logo-card { background: #fff; border-radius: 20px; padding: 40px 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); display: flex; align-items: center; justify-content: center; }
.pane-cover .logo-card img { width: 190px; height: auto; display: block; }

/* Responsivo: en pantallas chicas se oculta el panel decorativo y el
   formulario ocupa todo el ancho. */
@media (max-width: 768px) {
  .screen { padding: 28px 16px; justify-content: flex-start; }
  .brandrow { margin-bottom: 20px; }
  .brandrow img { height: 44px; }
  .card { flex-direction: column; }
  .pane-cover { display: none; }
  .pane-form { padding: 32px 22px 26px; }
  h1.title { font-size: 22px; }
  p.subtitle { margin-bottom: 24px; }
  .row-between { flex-wrap: wrap; gap: 10px; }
}
