:root {
  --auth-ink: #243f48;
  --auth-muted: #748286;
  --auth-cream: #f7f4ee;
  --auth-paper: #fbfaf7;
  --auth-line: #dfe4df;
  --auth-green: #72a08d;
  --auth-deep: #2f5c55;
  --auth-peach: #e4b18d;
  --auth-soft-green: #e0ede5;
}

html {
  background: var(--auth-cream);
}

body {
  background: var(--auth-cream);
  color: var(--auth-ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
}

.auth-left {
  display: flex;
  flex: initial;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: var(--auth-cream);
}

.auth-logo {
  width: 100%;
  max-width: 452px;
  margin-bottom: 42px;
}

.auth-logo img {
  display: block;
  max-width: 164px;
}

.auth-logo-text {
  color: var(--auth-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -.045em;
}

.auth-form-wrap {
  width: 100%;
  max-width: 452px;
  animation: auth-rise .75s both;
}

.auth-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--auth-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 24px;
  color: var(--auth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-align: left;
}

.auth-subtitle {
  margin: -12px 0 28px;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.fgroup {
  margin-bottom: 16px;
}

.fgroup label,
.auth-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-ink);
  font-size: .78rem;
  font-weight: 700;
}

.fgroup input,
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--auth-line);
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: var(--auth-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.fgroup input:focus,
.auth-card input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(114, 160, 141, .15);
}

.fgroup input::placeholder,
.auth-card input::placeholder {
  color: #9aa6a3;
}

.hint {
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: .78rem;
}

.btn-main,
.auth-card .btn-main {
  width: 100%;
  margin-top: 7px;
  padding: 16px 18px;
  border: 0;
  border-radius: 4px;
  background: #aabdb6;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.btn-main.active,
.auth-card .btn-main,
form .btn-main {
  background: var(--auth-deep);
}

.btn-main:hover,
.btn-main:hover.active,
.auth-card .btn-main:hover {
  background: #244c46;
  transform: translateY(-1px);
}

.btn-outline {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--auth-line);
  border-radius: 4px;
  background: #fff;
  color: var(--auth-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.btn-outline:hover {
  border-color: var(--auth-green);
  background: var(--auth-paper);
  color: var(--auth-deep);
}

.divider {
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: .78rem;
}

.divider::before,
.divider::after {
  background: var(--auth-line);
}

.auth-footer,
.back-link {
  color: var(--auth-muted);
  font-size: .85rem;
}

.auth-footer a,
.back-link a,
.auth-form-wrap a {
  color: var(--auth-deep) !important;
}

.auth-footer a:hover,
.back-link a:hover,
.auth-form-wrap a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.input-eye input,
.field-wrap input {
  padding-right: 46px !important;
}

.eye-btn {
  right: 10px;
  color: var(--auth-muted);
  opacity: .75;
}

.eye-btn:hover {
  color: var(--auth-deep);
  opacity: 1;
}

.alert,
.alert-err {
  border-radius: 4px;
  line-height: 1.5;
}

.alert-success {
  border-color: #b7d0c4;
  background: #e8f1ec;
  color: var(--auth-deep);
}

.auth-right,
.auth-story {
  position: relative;
  overflow: hidden;
  background: var(--auth-deep);
  color: var(--auth-cream);
}

.auth-right {
  display: flex;
  flex: initial;
  align-items: center;
  padding: clamp(48px, 8vw, 120px);
}

.auth-story::before {
  position: absolute;
  top: -190px;
  right: -190px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(183, 208, 196, .28);
  border-radius: 50%;
  background: transparent;
  content: "";
}

.auth-story::after {
  position: absolute;
  right: 11%;
  bottom: -125px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(228, 177, 141, .25);
  content: "";
}

.auth-right-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 0;
}

.auth-right-overlay::before,
.auth-story-copy::before {
  display: block;
  margin-bottom: 21px;
  color: #b7d0c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  content: "Serena Equilibrio";
}

.auth-right-overlay h2,
.auth-story h2 {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--auth-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.05em;
}

.auth-right-overlay h2 em,
.auth-story h2 em {
  color: var(--auth-peach);
  font-style: normal;
}

.auth-right-overlay p,
.auth-story p {
  max-width: 360px;
  color: #d1ded8;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-right-arrow {
  right: 36px;
  bottom: 36px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 244, 238, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

/* Recuperacion y nueva contrasena */
body.auth-standalone {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
}

.auth-card {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(452px, calc(100% - 56px));
  max-width: 452px;
  margin: 48px auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: auth-rise .75s both;
}

.auth-card .auth-logo {
  max-width: none;
  margin-bottom: 44px;
  text-align: left;
}

.auth-card .auth-logo img {
  max-height: 52px !important;
}

.auth-card .auth-page-title {
  margin: 0 0 12px;
  color: var(--auth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3rem) !important;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.auth-card .auth-page-copy {
  margin: 0 0 28px !important;
  color: var(--auth-muted) !important;
  font-size: .95rem !important;
  line-height: 1.65;
}

.auth-story {
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 120px);
}

.auth-story-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.strength {
  background: var(--auth-line);
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-wrap,
  .auth-card {
    animation: none;
  }
}

@media (max-width: 860px) {
  .auth-split,
  body.auth-standalone {
    display: block;
  }

  .auth-right,
  .auth-story {
    display: none;
  }

  .auth-left {
    min-height: 100vh;
    padding: 40px 24px;
  }

  .auth-card {
    width: min(452px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0;
  }
}

@media (max-width: 520px) {
  .auth-left {
    justify-content: flex-start;
    padding-top: 34px;
  }

  .auth-logo,
  .auth-card .auth-logo {
    margin-bottom: 34px;
  }

  .auth-title,
  .auth-card .auth-page-title {
    font-size: 2.35rem !important;
  }

  .frow {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
