:root { --login-accent: #71372d; --login-gold: #a67442; --login-ink: #30231d; }
  html, body, #dashboard { min-height: 100%; }
  body { margin: 0; background: #f3ebe0; }
  .login-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 76px);
    background-color: #32211d;
    background-image: linear-gradient(90deg, rgba(36, 20, 16, .08) 0%, rgba(36, 20, 16, .12) 34%, rgba(48, 28, 23, .76) 56%, #32211d 82%), url('../dist/img/auth/catalogo-desktop.webp');
    background-size: cover;
    background-position: left center;
  }
  .login-panel {
    position: relative;
    width: min(100%, 450px);
    padding: clamp(28px, 3.7vw, 46px);
    border: 1px solid rgba(255, 245, 229, .88);
    border-radius: 22px;
    background: #fffbf5;
    box-shadow: 0 28px 80px rgba(31, 15, 11, .35);
  }
  .login-brand { display: flex; align-items: center; justify-content: center; }
  .login-brand img { width: 290px; max-width: 100%; height: auto; object-fit: contain; }
  .login-heading { margin: 37px 0 29px; }
  .login-eyebrow { margin: 0 0 8px; color: #8d5a35; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .login-heading h1 { margin: 0; color: var(--login-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
  .login-heading > p:last-child { margin: 12px 0 0; color: #6b5b51; font-size: .9rem; line-height: 1.6; }
  .login-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #e9c5b5; border-radius: 10px; background: #fff2ed; color: #8b382b; font-size: .84rem; line-height: 1.45; }
  .login-alert i { margin-top: 2px; }
  .login-field { margin-bottom: 19px; }
  .login-field label { display: block; margin: 0 0 8px; color: #49352c; font-size: .82rem; font-weight: 700; }
  .login-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .login-text-link { color: var(--login-accent); font-size: .79rem; font-weight: 700; text-decoration: none; }
  .login-text-link:hover { color: #9a4735; text-decoration: underline; }
  .login-input { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #daccc0; border-radius: 10px; background: #fff; color: var(--login-ink); font-size: .93rem; line-height: 1.3; outline: none; transition: border-color .18s, box-shadow .18s; }
  .login-input::placeholder { color: #9a8d83; opacity: 1; }
  .login-input:hover { border-color: #bb9980; }
  .login-input:focus { border-color: #a67442; box-shadow: 0 0 0 3px rgba(166, 116, 66, .17); }
  .login-input.is-invalid { border-color: #b84b42; }
  .login-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(184, 75, 66, .13); }
  .login-error { display: block; margin: 7px 1px 0; color: #a33e34; font-size: .78rem; line-height: 1.4; }
  .login-password-wrap { position: relative; }
  .login-password-wrap .login-input { padding-right: 53px; }
  .login-password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #806b5d; cursor: pointer; }
  .login-password-toggle:hover { background: #f8eee4; color: var(--login-accent); }
  .login-password-toggle:focus-visible, .login-text-link:focus-visible, .login-submit:focus-visible { outline: 3px solid rgba(183, 155, 85, .65); outline-offset: 3px; }
  .login-remember { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 25px; color: #715f53; font-size: .82rem; cursor: pointer; }
  .login-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--login-accent); cursor: pointer; }
  .login-submit { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--login-accent); border-radius: 10px; background: var(--login-accent); color: #fff; font-size: .91rem; font-weight: 700; letter-spacing: .01em; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
  .login-submit:hover { background: #8d4535; box-shadow: 0 8px 18px rgba(113, 55, 45, .22); transform: translateY(-1px); }
  .login-submit:disabled { opacity: .7; cursor: wait; transform: none; }
  .login-footnote { margin: 20px 0 0; padding-top: 21px; border-top: 1px solid #eadfd2; color: #88796d; font-size: .75rem; line-height: 1.5; text-align: center; }
  .login-footnote span { display: block; }
  .login-footnote a { color: var(--login-accent); font-weight: 700; text-decoration: none; }
  .login-footnote a:hover { text-decoration: underline; }
  .login-footnote a:focus-visible { outline: 3px solid rgba(183, 155, 85, .65); outline-offset: 3px; }
  @media (max-width: 900px) {
    .login-screen { justify-content: center; background-position: 28% center; }
    .login-panel { background: rgba(255, 251, 245, .97); }
  }
  @media (max-width: 600px) {
    .login-screen { display: block; min-height: 100svh; padding: clamp(200px, 55vw, 290px) 16px 25px; background: #f3ebe0; }
    .login-screen::before { content: ''; position: absolute; inset: 0 0 auto; height: clamp(240px, 65vw, 340px); background: #32211d url('../dist/img/auth/catalogo-mobile.webp') center center / cover no-repeat; }
    .login-panel { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 24px; border-radius: 18px; box-shadow: 0 15px 45px rgba(64, 32, 23, .16); }
    .login-heading { margin: 27px 0 24px; }
    .login-brand img { width: 255px; }
  }
  @media (max-width: 380px) {
    .login-panel { padding: 24px 18px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .login-input, .login-submit { transition: none; }
  }
  .login-social { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 25px; color: #806c60; font-size: .78rem; font-weight: 600; }
  .login-social-links { display: flex; align-items: center; gap: 8px; }
  .login-social-links a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e4d6c8; border-radius: 50%; background: #fffaf4; color: var(--login-accent); font-size: .9rem; text-decoration: none; transition: background .18s, border-color .18s, transform .18s; }
  .login-social-links a:hover { background: #f7e9d9; border-color: #c99d79; transform: translateY(-2px); }
  .login-social-links a:focus-visible { outline: 3px solid rgba(183, 155, 85, .65); outline-offset: 3px; }
  .login-social-links img { width: 15px; height: 15px; }
  .login-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
  .login-success { margin-bottom: 20px; padding: 13px 15px; border: 1px solid #afd7b7; border-radius: 10px; background: #eef9ef; color: #21563b; font-size: .84rem; line-height: 1.5; }
