/* ============================================================
   publico/estilos/login.css
   Login social - Casa Peru Valencia
   ============================================================ */

body.pagina-login {
  min-height: 100vh;
  background: #fdf8f0;
  color: #221611;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 1fr);
}

.login-brand {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4.75rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 237, 237, 0.08), rgba(255, 194, 74, 0.05)),
    linear-gradient(135deg, #bd1e1e 0%, #e02412 58%, #f08136 100%);
}

.login-brand__halo {
  position: absolute;
  top: -4.5rem;
  right: -4.5rem;
  width: 23rem;
  height: 23rem;
  border: 2rem solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.login-brand__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-brand__mark {
  width: clamp(7rem, 12vw, 9.5rem);
  height: clamp(4.7rem, 8vw, 6.35rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.login-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.85rem 1.25rem rgba(20, 19, 17, 0.2));
}

.login-brand__name {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.login-brand__tag {
  margin-top: 0.24rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.86;
}

.login-brand__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 34rem;
}

.login-brand__eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
}

.login-brand h1 span {
  color: #ffde59;
}

.login-brand p {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.login-brand__chips {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.login-brand__chips span {
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
}

.login-brand__people {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.login-brand__avatars {
  display: flex;
}

.login-brand__avatars span {
  width: 1.55rem;
  height: 1.55rem;
  margin-right: -0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #ffd34d;
  color: #bd1e1e;
  font-size: 0.65rem;
  font-weight: 900;
}

.login-brand__avatars span:nth-child(2) {
  background: #ffc24a;
  color: #fff;
}

.login-brand__avatars span:nth-child(3) {
  background: #bd1e1e;
  color: #fff;
}

.login-brand__avatars span:nth-child(4) {
  background: #fff;
  color: #e02412;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.login-card {
  width: min(100%, 25rem);
}

.login-card__eyebrow {
  color: #bd1e1e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card h2 {
  margin-top: 0.35rem;
  color: #1e1510;
  font-size: 1.8rem;
  font-weight: 900;
}

.login-card p {
  margin-top: 0.45rem;
  color: #776a5e;
  font-size: 0.86rem;
}

.login-card form {
  margin-top: 1.45rem;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-link-btn {
  border: 0;
  background: transparent;
  color: #bd1e1e;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.login-link-btn:hover {
  text-decoration: underline;
}

.pagina-login .campo {
  margin-bottom: 1rem;
}

.pagina-login label {
  color: #251812;
  font-size: 0.82rem;
  font-weight: 750;
}

.pagina-login .input {
  height: 3.05rem;
  border: 1px solid #dfd2c2;
  border-radius: 0.45rem;
  background: #fffdf9;
  color: #2a1c15;
  font-size: 0.92rem;
}

.pagina-login .input:focus {
  border-color: #bd1e1e;
  box-shadow: 0 0 0 3px rgba(189, 30, 30, 0.12);
}

.login-submit {
  width: 100%;
  height: 3.15rem;
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #bd1e1e, #e02412);
  color: white;
  box-shadow: 0 0.9rem 1.6rem rgba(189, 30, 30, 0.18);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.login-submit:disabled {
  cursor: progress;
  opacity: 0.8;
}

.login-demo {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5d9cb;
}

.login-demo-titulo {
  margin-bottom: 0.7rem;
  color: #ad9f90;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.login-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.login-demo-btn {
  height: 2.35rem;
  border: 1px solid #dfd2c2;
  border-radius: 0.45rem;
  background: #fffdf9;
  color: #4c4038;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.login-demo-btn:hover {
  border-color: #bd1e1e;
  background: #ffeded;
  color: #bd1e1e;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.9rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #eadfd3;
}

.login-legal-links a {
  color: #bd1e1e;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.login-legal-links a:hover {
  text-decoration: underline;
}

.login-pie {
  margin-top: 1.25rem;
  color: #aa9d90;
  text-align: center;
  font-size: 0.72rem;
}

.login-theme-toggle {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 50;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(135deg, #bd1e1e, #e02412);
  color: white;
  box-shadow: 0 1rem 2rem rgba(189, 30, 30, 0.24);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
}

:root[data-theme="dark"] body.pagina-login {
  background: #121214;
  color: #f8fafc;
}

:root[data-theme="dark"] .login-panel {
  background: #121214;
}

:root[data-theme="dark"] .login-card {
  color: #f8fafc;
}

:root[data-theme="dark"] .login-card p,
:root[data-theme="dark"] .login-pie,
:root[data-theme="dark"] .login-demo-titulo {
  color: #cbd5e1;
}

:root[data-theme="dark"] .login-legal-links {
  border-color: #383842;
}

:root[data-theme="dark"] .login-legal-links a {
  color: #ff8a7f;
}

:root[data-theme="dark"] .login-card label,
:root[data-theme="dark"] .login-card h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .login-card .input,
:root[data-theme="dark"] .login-demo-btn {
  border-color: #383842;
  background: #1c1c20;
  color: #f8fafc;
}

:root[data-theme="dark"] .login-demo {
  border-top-color: #383842;
}

.pagina-login .flash {
  margin-top: 1rem;
  border-radius: 0.45rem;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    padding: 2rem;
    gap: 4rem;
  }

  .login-panel {
    min-height: auto;
    padding: 2rem;
  }
}

@media (max-width: 520px) {
  .login-brand h1 {
    font-size: 2.45rem;
  }

  .login-demo-grid {
    grid-template-columns: 1fr;
  }
}
