/* ===========================================================
   PetVida — Inicio de sesión (Login premium)
   =========================================================== */
:root {
  --primary: #0ea5a4;
  --primary-dark: #0c8584;
  --accent: #f97316;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --text: #0f2a2a;
  --text-soft: #5b7373;
  --text-mute: #93aaaa;
  --border: #e6edee;
  --ring: rgba(14,165,164,.18);
  --red: #ef4444;
  --shadow: 0 24px 60px -24px rgba(15,42,42,.3);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { font-family: var(--font-head); }
svg { display: block; }

.login { display: flex; min-height: 100vh; }

/* ---------- Panel izquierdo (marca) ---------- */
.login__aside {
  flex: 1.1;
  background: linear-gradient(150deg, #0c2b2b, #0ea5a4);
  color: #eafffe;
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login__aside::before, .login__aside::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .25;
}
.login__aside::before { width: 320px; height: 320px; background: #5eead4; top: -90px; right: -70px; }
.login__aside::after { width: 260px; height: 260px; background: var(--accent); bottom: -90px; left: -60px; opacity: .2; }
.login__brand { display: flex; align-items: center; gap: .7rem; position: relative; z-index: 1; }
.login__brand-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.login__brand-logo svg { width: 26px; height: 26px; color: #fff; }
.login__brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.login__brand-name strong { color: #bff7f1; }

.login__pitch { position: relative; z-index: 1; max-width: 440px; }
.login__pitch h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.login__pitch p { color: #cdeeec; margin-bottom: 2rem; }
.login__features { display: grid; gap: 1rem; }
.login__feature { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.login__feature span { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.login__feature svg { width: 18px; height: 18px; color: #fff; }
.login__foot { position: relative; z-index: 1; font-size: .82rem; color: #9fd4d0; }

/* ---------- Panel derecho (formulario) ---------- */
.login__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login__card { width: 100%; max-width: 400px; }
.login__head { margin-bottom: 1.8rem; }
.login__head h1 { font-size: 1.7rem; margin-bottom: .4rem; }
.login__head p { color: var(--text-soft); font-size: .95rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-mute); }
.field input {
  width: 100%; padding: .85rem 2.6rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: .95rem; transition: .18s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: none; background: none; cursor: pointer; color: var(--text-mute); border-radius: 8px; }
.pw-toggle:hover { color: var(--primary); }
.pw-toggle svg { width: 19px; height: 19px; }

.login__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; font-size: .86rem; }
.checkbox { display: flex; align-items: center; gap: .45rem; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

.btn-login {
  width: 100%; padding: .9rem; border: none; border-radius: 12px; cursor: pointer;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 14px 26px -12px rgba(14,165,164,.85); transition: .18s;
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-login svg { width: 18px; height: 18px; }

.login__error {
  display: none; align-items: center; gap: .5rem;
  background: rgba(239,68,68,.1); color: #b91c1c; border: 1px solid rgba(239,68,68,.25);
  padding: .7rem .9rem; border-radius: 11px; font-size: .86rem; margin-bottom: 1.1rem; font-weight: 500;
}
.login__error.show { display: flex; }
.login__error svg { width: 18px; height: 18px; flex-shrink: 0; }

.demo-box {
  margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--border); font-size: .85rem; color: var(--text-soft);
}
.demo-box strong { color: var(--text); }
.demo-box code { background: var(--surface); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 6px; font-size: .82rem; color: var(--primary-dark); }
.demo-box .demo-fill { margin-top: .6rem; color: var(--primary); font-weight: 600; cursor: pointer; display: inline-block; }

.login__back { margin-top: 1.6rem; text-align: center; font-size: .86rem; }
.login__back a { color: var(--text-soft); }

@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.shake { animation: shake .4s; }

@media (max-width: 860px) {
  .login__aside { display: none; }
}
