/* TuCondominio360 - pantalla de inicio de sesión (login-marca, 2026-11-09).
   Todo va dentro de .tc-login para no afectar otras pantallas si el navegador conserva esta hoja. */
.tc-login {
  --tcl-primario: #14507a;
  --tcl-oscuro: #0b3652;
  --tcl-acento: #1fb6a6;
  --tcl-acento-suave: #e4f7f3;
  --tcl-texto: #111827;
  --tcl-medio: #374151;
  --tcl-suave: #6b7280;
  --tcl-borde: #e2e8f0;
  --tcl-fondo: #f8fafc;
  --tcl-error: #b91c1c;
  margin: 0;
  min-height: 100vh;
  background: var(--tcl-fondo);
  color: var(--tcl-texto);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tc-login *, .tc-login *::before, .tc-login *::after { box-sizing: border-box; }
.tc-login a { color: inherit; text-decoration: none; }
.tc-login :focus-visible { outline: 3px solid var(--tcl-acento); outline-offset: 2px; }

.tc-login .tcl-pantalla { display: grid; grid-template-columns: minmax(360px, 0.9fr) 1.1fr; min-height: 100vh; }

/* Panel de marca */
.tc-login .tcl-marca {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 48px 56px;
  background: radial-gradient(circle at 85% 10%, rgba(31, 182, 166, 0.28) 0%, rgba(31, 182, 166, 0) 45%),
              linear-gradient(160deg, var(--tcl-oscuro) 0%, var(--tcl-primario) 100%);
  color: #fff;
}
.tc-login .tcl-marca::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px;
  border-radius: 50%; border: 56px solid rgba(255, 255, 255, 0.05); pointer-events: none;
}
.tc-login .tcl-logo img { display: block; height: 40px; width: auto; }
.tc-login .tcl-marca-texto { max-width: 440px; }
.tc-login .tcl-marca-texto h2 { margin: 0 0 28px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.tc-login .tcl-marca-texto ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tc-login .tcl-marca-texto li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #dbe7f0; }
.tc-login .tcl-marca-texto li svg {
  flex: none; box-sizing: content-box; padding: 9px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); color: var(--tcl-acento);
}
.tc-login .tcl-marca-pie { position: relative; z-index: 1; }
.tc-login .tcl-marca-pie p { margin: 0 0 12px; font-size: 15px; color: #cbd5e1; }
.tc-login .tcl-boton-claro {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 9999px; background: #fff; color: var(--tcl-oscuro);
  font-weight: 700; font-size: 15px; transition: transform 0.2s ease, background 0.2s ease;
}
.tc-login .tcl-boton-claro:hover { background: var(--tcl-acento-suave); transform: translateY(-2px); }

/* Formulario */
.tc-login .tcl-principal { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 28px; }
.tc-login .tcl-caja { width: 100%; max-width: 420px; }
.tc-login .tcl-logo-movil { display: none; }
.tc-login .tcl-titulo { margin: 0 0 6px; font-size: 30px; font-weight: 800; color: var(--tcl-oscuro); letter-spacing: -0.01em; }
.tc-login .tcl-subtitulo { margin: 0 0 28px; font-size: 15px; color: var(--tcl-suave); }
.tc-login .tcl-estado { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: #e8f7ee; border: 1px solid #bfe9cf; color: #0f5132; font-size: 14px; }

.tc-login .tcl-campo { margin-bottom: 18px; }
.tc-login .tcl-campo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--tcl-oscuro); }
.tc-login .tcl-campo input {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--tcl-borde); border-radius: 10px; background: #fff;
  font: inherit; font-size: 15.5px; color: var(--tcl-texto);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tc-login .tcl-campo input::placeholder { color: #9ca3af; }
.tc-login .tcl-campo input:focus { outline: none; border-color: var(--tcl-primario); box-shadow: 0 0 0 3px rgba(20, 80, 122, 0.14); }
.tc-login .tcl-campo input[aria-invalid="true"] { border-color: var(--tcl-error); }
.tc-login .tcl-clave { position: relative; }
.tc-login .tcl-clave input { padding-right: 92px; }
.tc-login .tcl-ver {
  position: absolute; top: 6px; right: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 8px; background: #eaf2f8; color: var(--tcl-primario);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.tc-login .tcl-ver:hover { background: #d6e6f2; }
.tc-login .tcl-error { margin: 6px 0 0; font-size: 13.5px; color: var(--tcl-error); }

.tc-login .tcl-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 24px; }
.tc-login .tcl-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tcl-medio); cursor: pointer; }
.tc-login .tcl-check input { width: 18px; height: 18px; margin: 0; border-radius: 4px; accent-color: var(--tcl-primario); }
.tc-login .tcl-olvide { font-size: 14px; font-weight: 600; color: var(--tcl-primario); }
.tc-login .tcl-olvide:hover { text-decoration: underline; }

.tc-login .tcl-entrar {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 50px;
  border: 0; border-radius: 9999px; cursor: pointer;
  background: linear-gradient(135deg, var(--tcl-primario) 0%, var(--tcl-oscuro) 100%); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(11, 54, 82, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tc-login .tcl-entrar:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 54, 82, 0.3); }
.tc-login .tcl-entrar:disabled { opacity: 0.75; cursor: wait; transform: none; }

.tc-login .tcl-ayuda { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--tcl-borde); text-align: center; }
.tc-login .tcl-ayuda-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: left; font-size: 14.5px; font-weight: 600; color: #128c4a; }
.tc-login .tcl-ayuda-wa:hover { text-decoration: underline; }
.tc-login .tcl-enlaces { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 13.5px; color: var(--tcl-suave); }
.tc-login .tcl-enlaces a { color: var(--tcl-primario); font-weight: 600; }
.tc-login .tcl-enlaces a:hover { text-decoration: underline; }
.tc-login .tcl-legal { margin: 32px 0 0; font-size: 12.5px; color: #9ca3af; text-align: center; }
.tc-login .tcl-legal a { color: inherit; text-decoration: underline; }

/* Tableta y teléfono: la marca pasa a una franja arriba */
@media (max-width: 900px) {
  .tc-login .tcl-pantalla { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tc-login .tcl-marca { padding: 28px 24px 30px; gap: 20px; }
  .tc-login .tcl-marca::after { display: none; }
  .tc-login .tcl-marca-texto h2 { font-size: 22px; margin-bottom: 16px; }
  .tc-login .tcl-marca-texto li { font-size: 14.5px; }
  .tc-login .tcl-marca-texto li svg { padding: 7px; }
  .tc-login .tcl-marca-pie { display: none; }
  .tc-login .tcl-principal { justify-content: flex-start; padding: 32px 20px 24px; }
}
@media (max-width: 560px) {
  .tc-login .tcl-marca { padding: 18px 20px; }
  .tc-login .tcl-marca-texto { display: none; }
  .tc-login .tcl-logo img { height: 32px; }
  .tc-login .tcl-titulo { font-size: 26px; }
  .tc-login .tcl-subtitulo { margin-bottom: 22px; }
}
/* Dentro de la app Android: sin franja de marca, solo el formulario con el logo */
.tc-login-app .tcl-marca { display: none; }
.tc-login-app .tcl-pantalla { grid-template-columns: 1fr; }
.tc-login-app .tcl-principal { justify-content: center; }
.tc-login-app .tcl-logo-movil { display: block; height: 36px; width: auto; margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) {
  .tc-login .tcl-boton-claro, .tc-login .tcl-entrar, .tc-login .tcl-campo input { transition: none; }
  .tc-login .tcl-boton-claro:hover, .tc-login .tcl-entrar:hover { transform: none; }
}
