/* Sunset 47 · Páginas de acceso (ingreso, recuperar y restablecer contraseña) */
:root {
  --a-primary: #17695B; --a-primary-600: #12564A; --a-accent: #B08D57;
  --a-bg: #EEF0EB; --a-text: #1E2421; --a-muted: #6B726E; --a-border: #D5D9D3;
  --a-danger: #B83A32; --a-success: #2E7D4F; --a-warning: #A86A0B;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", "Segoe UI", -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #E3ECE5 0%, transparent 60%), var(--a-bg);
  color: var(--a-text); -webkit-font-smoothing: antialiased; font-size: 14px;
}
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,32,29,.06), 0 24px 60px rgba(24,32,29,.14);
}
.auth-media { position: relative; min-height: 560px; background: #1C2420 center/cover no-repeat; }
.auth-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,22,19,.05) 30%, rgba(16,22,19,.78) 100%); }
.auth-media .auth-media-text { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; color: #fff; }
.auth-media h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.auth-media p { margin: 0; opacity: .85; line-height: 1.5; }
.auth-body { padding: 44px 48px 32px; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; border: 1px solid var(--a-border); padding: 4px; background: #fff; }
.auth-brand strong { display: block; font-size: 15px; }
.auth-brand span { color: var(--a-muted); font-size: 12.5px; }
.auth-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-sub { color: var(--a-muted); margin: 0 0 24px; line-height: 1.5; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #3A423E; }
.auth-input {
  width: 100%; height: 46px; border: 1px solid var(--a-border); border-radius: 12px; padding: 0 14px;
  font: inherit; color: var(--a-text); background: #fff; transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
select.auth-input { background-image: linear-gradient(45deg, transparent 50%, #6B726E 50%), linear-gradient(135deg, #6B726E 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.auth-input:focus { outline: 0; border-color: var(--a-primary); box-shadow: 0 0 0 3px rgba(23,105,91,.18); }
.auth-input.is-invalid { border-color: var(--a-danger); }
.auth-pass { position: relative; }
.auth-pass .auth-input { padding-right: 46px; }
.auth-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--a-muted); font-size: 13px; }
.auth-eye:hover { background: #F2F4F1; color: var(--a-text); }
.auth-hint { display: block; font-size: 12px; margin-top: 5px; min-height: 0; }
.auth-hint.err { color: var(--a-danger); } .auth-hint.ok { color: var(--a-success); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; gap: 10px; }
.auth-link { color: var(--a-primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-btn {
  width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--a-primary); color: #fff;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, transform .05s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { background: var(--a-primary-600); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn[disabled] { opacity: .6; cursor: wait; }
.auth-btn.secondary { background: #fff; color: var(--a-text); border: 1px solid var(--a-border); }
.auth-alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.45; display: none; }
.auth-alert.show { display: block; }
.auth-alert.err { background: #FBEAE8; color: #8A2A24; border: 1px solid #F2CFCB; }
.auth-alert.ok { background: #E7F4EC; color: #1F5A38; border: 1px solid #CDE8D7; }
.auth-alert.info { background: #F6F0E6; color: #6E5226; border: 1px solid #EADBC2; }
.auth-foot { margin-top: auto; padding-top: 26px; color: #8A918D; font-size: 12px; text-align: center; }
.auth-foot a { color: #6B726E; }
.auth-meter { height: 6px; border-radius: 99px; background: #EEF0EC; overflow: hidden; margin-top: 8px; }
.auth-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.auth-checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--a-muted); }
.auth-checks li:before { content: "○ "; } .auth-checks li.ok { color: var(--a-success); } .auth-checks li.ok:before { content: "● "; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; display: none; }
.loading .spin { display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-media { min-height: 190px; }
  .auth-media h2 { font-size: 20px; }
  .auth-body { padding: 28px 22px 22px; }
}
