/* login.css — La Fontana Sistema */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #009D4C;
  --green-dark: #007A3A;
  --green-deep: #1F8C4E;
  --surface:    #ffffff;
  --bg:         #f5f7f6;
  --text:       #111;
  --text-mid:   #555;
  --text-soft:  #999;
  --border:     #e0e0e0;
  --error:      #ba1a1a;
  --error-bg:   rgba(186,26,26,0.06);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
}

html, body {
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  height: 100%;
}

/* ── LAYOUT ── */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}

/* ── LEFT ── */
.left {
  background: var(--green-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
}

.left::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  bottom: -200px; right: -200px;
  pointer-events: none;
}

.left::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  bottom: -100px; right: -100px;
  pointer-events: none;
}

.left-inner {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  bottom: 0; right: 0;
  pointer-events: none;
}

.left-glow {
  position: absolute;
  width: 50%; height: 50%;
  bottom: 0; left: -10%;
  background: radial-gradient(ellipse, rgba(0,157,76,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.left-top { position: relative; z-index: 1; }
.left-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.left-bottom { position: relative; z-index: 1; }

.left-headline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.left-headline span { color: rgba(255,255,255,0.45); }

.left-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 26ch;
}

/* ── RIGHT ── */
.right {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.form-wrap { width: 100%; max-width: 360px; }

.form-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.form-sub {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

/* FORM */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }

.field label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .ico {
  position: absolute;
  left: 12px;
  color: #bbb;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder { color: #bbb; }

.input-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,157,76,0.1);
  background: #fff;
}

/* Desactivar ícono de contraseña nativo de Chrome */
.input-wrap input::-ms-reveal,
.input-wrap input::-ms-clear { display: none; }

.eye-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  z-index: 2;
  height: 100%;
}

.eye-btn:hover { color: var(--text); }
.eye-btn .material-symbols-outlined { font-size: 18px; }

.check-row { display: flex; align-items: center; gap: 0.5rem; }

.check-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--green);
  cursor: pointer;
}

.check-row label {
  font-size: 0.8rem;
  color: var(--text-mid);
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0,157,76,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  margin-top: 0.25rem;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,157,76,0.35);
}

.btn:active { transform: scale(0.98); }

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* SECURITY NOTE */
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.875rem;
  background: var(--error-bg);
  border: 1px solid rgba(186,26,26,0.1);
  border-radius: 8px;
}

.security-note .material-symbols-outlined { color: var(--error); font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.security-note p { font-size: 0.72rem; line-height: 1.5; color: var(--text-mid); }
.security-note strong { color: var(--error); }

.security-note.advertencia {
  background: rgba(230,130,0,0.07);
  border-color: rgba(230,130,0,0.2);
}
.security-note.advertencia .material-symbols-outlined { color: #E65100; }
.security-note.advertencia p { color: var(--text-mid); }
.security-note.advertencia strong { color: #E65100; }

.security-note.bloqueado {
  background: rgba(186,26,26,0.09);
  border-color: rgba(186,26,26,0.25);
}
.security-note.bloqueado .material-symbols-outlined { color: var(--error); }
.security-note.bloqueado strong { color: var(--error); }

/* ERROR BANNER */
.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.875rem;
  background: var(--error-bg);
  border: 1px solid rgba(186,26,26,0.2);
  border-radius: 8px;
}
.error-banner .material-symbols-outlined { color: var(--error); flex-shrink: 0; }
.error-banner p { font-size: 0.8rem; color: var(--error); font-weight: 500; line-height: 1.4; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .page { grid-template-columns: 1fr; height: auto; overflow-y: auto; }
  .left { display: none; }
  .right { padding: 2.5rem 1.5rem; min-height: 100vh; overflow-y: auto; }
}