@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Calibri" ;
}

/* Fuentes más compactas */
body {
  font-size: 13px;
}

/* Desktop Layout */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ================= PANEL IZQUIERDO ================= */
.left-panel {
  flex: 1;
  background: #0a192f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.left-panel::before,
.left-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(214, 40, 40, 0.2);
}

.left-panel::before {
  width: 350px;
  height: 350px;
  top: -80px;
  left: -80px;
}

.left-panel::after {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -50px;
}

.brand-box {
  text-align: center;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Manteniendo logo-circle por si se necesita en el futuro */
.logo-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0f2847, #d62828);
  margin: 0 auto 10px;
  display: none; /* Oculto porque ahora usamos brand-logo */
}

.brand-name {
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.footer-links {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #c7d2e5;
  font-size: 12px;
  text-decoration: none;
}

/* ================= PANEL DERECHO ================= */
.right-panel {
  flex: 1;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-box {
  width: 330px;
}

.form-box h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #0a192f;
}

/* ================= INPUTS ================= */
.input-group {
  position: relative;
  margin: 24px 0;
}

.input-group input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #cbd5e1;
  padding: 9px 0;
  font-size: 14px;
  background: transparent;
  color: #111;
  outline: none;
  transition: .3s;
}

.input-group input:focus {
  border-color: #d62828;
}

.input-group label {
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
  transition: .3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -9px;
  font-size: 11px;
  color: #d62828;
}

/* ================= OJO PASSWORD ================= */
.toggle-pass {
  position: absolute;
  right: 0;
  top: 5px;
  cursor: pointer;
  color: #6b7280;
  transition: .3s;
}

.toggle-pass:hover {
  color: #d62828;
}

.toggle-pass svg {
  width: 18px;
  height: 18px;
}

.eye-open path:nth-child(2) {
  display: none;
}

/* ================= BOTÓN ================= */
button {
  width: 100%;
  padding: 11px;
  background: #0a192f;
  border: none;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}

button:hover {
  background: #d62828;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 5px;
}

.forgot {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: #0a192f;
  text-decoration: none;
}

.forgot:hover {
  color: #d62828;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d62828;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .4s, transform .4s;
  transform: translateY(-10px);
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow-y: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .left-panel {
    width: 100%;
    height: 150px;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .right-panel {
    flex: unset;
    width: 100%;
    display: block;
    margin-top: 20px;
    padding-bottom: 40px;
  }

  .form-box {
    width: 88%;
    margin: auto;
  }
}

/* Espacio entre checkbox y botón */
.remember {
  margin-bottom: 12px;
}

/* Checkbox custom estilo fintech */
.remember input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #0a192f;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: .2s;
  background: #fff;
}

.remember input[type="checkbox"]:checked {
  background: #0a192f;
  border-color: #0a192f;
}

.remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Label estilo */
.remember label {
  font-size: 13px;
  color: #0a192f;
  cursor: pointer;
}

/* ===== Checkbox custom centrado y alineado ===== */
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.remember input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #0a192f;
  border-radius: 6px;
  /* o 4px si lo quieres menos redondo */
  background: #fff;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(13, 27, 45, 0);
}

.remember input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.15);
}

.remember input[type="checkbox"]::after {
  /* El ‘check’ centrado */
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  opacity: 0;
  /* oculto cuando no está marcado */
  transition: opacity .15s ease;
}

.remember input[type="checkbox"]:checked {
  background: #0a192f;
  border-color: #0a192f;
}

.remember input[type="checkbox"]:checked::after {
  opacity: 1;
  /* muestra el check */
}

.remember label {
  font-size: 13px;
  color: #0a192f;
  line-height: 1;
  /* evita desalineación vertical */
  cursor: pointer;
}
/* Divider línea */
.divider {
  width: 100%;
  text-align: center;
  margin: 18px 0;
  position: relative;
}
.divider span {
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  color: #6b7280;
}
.divider::before {
  content: "";
  width: 100%;
  height: 1px;
  background: #d1d5db;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
}

/* Google login button */
.google-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1.5px solid #dadce0;
  border-radius: 6px;
  color: #3c4043;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: .2s;
  font-size: 13px;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #0a192f;
}
