:root {
  --main-gradient: linear-gradient(135deg,#123c69 0%,#1769e0 52%,#0f9f8f 100%);
  --main-dark: #171e30;
  --card-bg: #fff;
  --shadow: 0 18px 42px rgba(15, 23, 42, .12);
  --input-bg: #f7faff;
  --input-border: #c7dbff;
}

html, body {
  height: 100%; min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  background: #f4f7fb;
  margin: 0; padding: 0;
}

.login-root {
  display: flex;
  min-height: 100vh;
}

/* --- ILUSTRACION --- */
.login-illustration {
  flex: 1.35;
  position: relative;
  background: var(--main-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 380px;
  overflow: hidden;
  padding: 42px 28px;
}
.circle-bg {
  display: none;
}
.login-illustration::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
}
.logo-landing {
  width: 65px; height: 65px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  margin-bottom: 18px;
  z-index: 1;
}
.brand {font-size: 2.4rem; font-weight: 800; letter-spacing: 0; margin: 0 0 7px 0; z-index:1;}
.desc {font-size: 1.08rem; margin: 0 0 28px 0; color:#f0f4fa; opacity:.92;}
.svg-illu {
  width: min(360px, 72%);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06)),
    linear-gradient(135deg, rgba(18,60,105,.2), rgba(15,159,143,.3));
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  margin: 12px 0 22px;
  z-index: 1;
}
.svg-illu img {
  width: 340px; max-width: 80vw; margin-bottom: 12px;
  z-index: 1;
  user-select: none;
}

/* --- LOGIN CARD --- */
.login-form-side {
  flex: 1;
  display: flex; justify-content: center; align-items: center;
  background: #f8faff;
  min-width: 320px;
}
.login-card {
  width: 340px; max-width: 92vw;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border: 1px solid #e6edf7;
  border-radius: 10px;
  padding: 34px 36px 24px 36px;
  display: flex; flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.8s cubic-bezier(.7,0,.28,1);
}
@keyframes fadeIn {
  from {transform:translateY(34px) scale(.95); opacity:0;}
  to   {transform:translateY(0) scale(1); opacity:1;}
}

.login-card h2 {
  margin: 0 0 6px 0; font-weight: 800; font-size: 2rem; color: #123c69;
  letter-spacing: 0;
}
.login-card .subtitle {
  color: #425377; margin-bottom: 18px; font-size: 1.09em;
}

.form {
  display: flex; flex-direction: column; gap: 10px;
}
.input, .form input[type="text"], .form input[type="password"] {
  width: 100%;
  border-radius: 9px;
  border: 1.5px solid var(--input-border);
  padding: 11px 12px;
  background: var(--input-bg);
  font-size: 1em;
  transition: border 0.19s, box-shadow .19s, background .19s;
}
.input:focus,
.form input[type="text"]:focus,
.form input[type="password"]:focus {
  border-color: #1769e0;
  box-shadow: 0 0 0 4px rgba(23,105,224,.14);
  background: #fff;
  outline: none;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 9px;
  border: 1.5px solid var(--input-border);
  overflow: hidden;
}
.input-group input { border: none; background: transparent; flex: 1;}
.input-group:focus-within {
  border-color: #1769e0;
  box-shadow: 0 0 0 4px rgba(23,105,224,.14);
  background: #fff;
}
.input-group .show {
  background: transparent;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  color: #425377;
}
.btn.primary {
  background: linear-gradient(90deg,#123c69,#0f9f8f);
  color: #fff; font-weight: 700;
  border: none; border-radius: 8px;
  padding: 13px 0; font-size: 1.08em;
  margin-top: 8px;
  box-shadow: 0 8px 20px rgba(18,60,105,.18);
  cursor: pointer; letter-spacing: 0;
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 24px rgba(18,60,105,.22); }

.login-alert {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .94rem;
  font-weight: 600;
}

.signup {
  margin-top: 22px; font-size: .96em;
}
.link {
  color: #1769e0; text-decoration: none; font-weight: 600;
}
.link:hover { color: #123c69; text-decoration: underline; }
.row.aux {
  display: flex; justify-content: flex-end; margin-top: 0;
}
.muted { color: #8d96a8; font-size:.97em; }
@media (max-width: 950px) {
  .login-root { flex-direction: column;}
  .login-illustration { min-height: 200px; flex:unset; height: 330px;}
  .login-form-side { min-width: unset;}
}
@media (max-width: 700px) {
  .login-root { background: var(--main-gradient); }
  .login-illustration {
    display:flex;
    min-width: unset;
    height: auto;
    min-height: 160px;
    padding: 28px 20px 18px;
  }
  .login-illustration::before,
  .desc,
  .svg-illu { display:none; }
  .brand { font-size: 1.9rem; }
  .logo-landing { width: 56px; height: 56px; margin-bottom: 12px; }
  .login-form-side {flex:1; align-items:flex-start; padding: 0 16px 28px; background: transparent;}
  .login-card { width: 100%; max-width: 430px; padding: 26px 22px 22px; }
}
