/* LabAncestral · login.css
   Ubicación: core/static/core/css/panel/login.css */

.login-body {
  margin: 0;
  min-width: 0;
  background: #f6efe1;
}

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
  min-width: 0;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Panel visual */
.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  overflow: hidden;
  background: #0e3d22;
  color: #eae3d2;
}

.login-visual__sun {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #f6ce7e 0%, rgba(238, 154, 28, .32) 38%, transparent 66%);
  border-radius: 50%;
  animation: login-sun 9s ease-in-out infinite;
  pointer-events: none;
}

.login-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.login-brand img {
  display: block;
  width: 42px;
  height: 42px;
  padding: 2px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
}

.login-brand span {
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  white-space: nowrap;
}

.login-visual__content {
  position: relative;
  padding: 72px 0;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #f3d9a0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.login-eyebrow span {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #ee9a1c;
  border-radius: 50%;
  animation: login-glow 2.4s ease-in-out infinite;
}

.login-visual h2 {
  max-width: 420px;
  margin: 0 0 16px;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}

.login-visual__content p {
  max-width: 400px;
  margin: 0;
  color: #bcd2c4;
  font-size: 15.5px;
  line-height: 1.65;
}

.login-coordinates {
  position: relative;
  color: #6fae83;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.5;
}

/* Panel del formulario */
.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 48px 48px;
  background: #f6efe1;
}

.login-back {
  position: absolute;
  top: 28px;
  right: 36px;
  color: #6b6657;
  font-size: 13.5px;
  text-decoration: none;
}

.login-form-wrap {
  width: 100%;
  max-width: 392px;
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  background: #18713a;
  border-radius: 50%;
  color: #fff;
}

.login-form-wrap h1 {
  margin: 0 0 8px;
  color: #152514;
  font-family: 'Spectral', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.login-intro {
  margin: 0 0 32px;
  color: #6b6657;
  font-size: 15px;
  line-height: 1.6;
}

.login-messages {
  margin-bottom: 20px;
}

.login-message {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #991b1b;
  font-size: 14px;
}

.login-message:last-child {
  margin-bottom: 0;
}

.login-field label,
.login-password-heading label {
  display: block;
  color: #3a3528;
  font-size: 13px;
  font-weight: 600;
}

.login-field > label {
  margin-bottom: 8px;
}

.login-form input[type='email'],
.login-form input[type='password'],
.login-form input[type='text'] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d8c9a8;
  border-radius: 11px;
  color: #152514;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.login-form input[type='email']:focus,
.login-form input[type='password']:focus,
.login-form input[type='text']:focus {
  border-color: #18713a;
  box-shadow: 0 0 0 3px rgba(24, 113, 58, .14);
}

.login-password-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 8px;
}

.login-password-heading a {
  color: #18713a;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}

.login-error {
  margin-top: 5px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 26px;
  color: #54503f;
  font-size: 13.5px;
  cursor: pointer;
}

.login-remember input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #18713a;
}

.login-submit,
.login-request {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
}

.login-submit {
  gap: 9px;
  padding: 15px;
  margin-bottom: 18px;
  background: #18713a;
  border: 0;
  color: #fff;
  font-size: 15.5px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.login-submit:hover {
  background: #145f31;
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit span {
  font-size: 17px;
}

.login-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #a89f88;
  font-size: 12.5px;
}

.login-divider span:first-child,
.login-divider span:last-child {
  height: 1px;
  background: #e0d3b6;
}

.login-request {
  padding: 13px;
  background: #fff;
  border: 1px solid #d8c9a8;
  color: #16331c;
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
}

@keyframes login-sun {
  0%, 100% { transform: translate(0, 0); opacity: .8; }
  50% { transform: translate(3%, 2%); opacity: 1; }
}

@keyframes login-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-visual {
    min-height: auto;
    padding: 30px 28px 34px;
  }

  .login-visual__sun {
    top: -210px;
    right: -150px;
  }

  .login-visual__content {
    padding: 46px 0 20px;
  }

  .login-visual h2 {
    max-width: 620px;
    font-size: 34px;
  }

  .login-visual__content p {
    max-width: 650px;
  }

  .login-panel {
    align-items: flex-start;
    min-height: auto;
    padding: 72px 28px 56px;
  }

  .login-back {
    top: 24px;
    right: 28px;
  }
}

@media (max-width: 600px) {
  .login-visual {
    padding: 24px 20px 28px;
  }

  .login-brand img {
    width: 38px;
    height: 38px;
  }

  .login-brand span {
    font-size: 21px;
  }

  .login-visual__content {
    padding: 34px 0 12px;
  }

  .login-eyebrow {
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 10px;
  }

  .login-visual h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .login-visual__content p {
    font-size: 14.5px;
  }

  .login-coordinates {
    margin-top: 20px;
    font-size: 10px;
  }

  .login-panel {
    padding: 68px 20px 48px;
  }

  .login-back {
    top: 22px;
    right: 20px;
  }

  .login-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
  }

  .login-form-wrap h1 {
    font-size: 31px;
  }

  .login-intro {
    margin-bottom: 26px;
  }
}

@media (max-width: 400px) {
  .login-visual,
  .login-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .login-back {
    right: 16px;
  }

  .login-password-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .login-password-heading a {
    text-align: left;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}