/* login-beautify-20261023: Lead2Deed sign-in + forgot-password. Scoped to devise sessions/passwords "new" pages. */
body[class~="devise/sessions-new"], body[class~="devise/sessions-create"], body[class~="devise/passwords-new"], body[class~="devise/passwords-create"] {
  min-height: 100vh; margin: 0;
  background-color: #1f2a37;
  background-image: url("/images/l2d-login/skyline.svg"),
    radial-gradient(1200px 600px at 85% -10%, rgba(250,134,65,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0,169,245,.22), transparent 60%),
    linear-gradient(160deg, #1f2a37 0%, #16202c 55%, #0f1720 100%);
  background-repeat: no-repeat; background-position: bottom center, 0 0, 0 0, 0 0;
  background-size: 100% auto, auto, auto, auto; background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body[class~="devise/sessions-new"] > header, body[class~="devise/sessions-new"] > header + div,
body[class~="devise/sessions-create"] > header, body[class~="devise/sessions-create"] > header + div,
body[class~="devise/passwords-new"] > header, body[class~="devise/passwords-new"] > header + div,
body[class~="devise/passwords-create"] > header, body[class~="devise/passwords-create"] > header + div { display: none !important; }
body[class~="devise/sessions-new"] #body_container > .row > div,
body[class~="devise/sessions-create"] #body_container > .row > div,
body[class~="devise/passwords-new"] #body_container > .row > div,
body[class~="devise/passwords-create"] #body_container > .row > div { flex: 0 0 100%; max-width: 100%; width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; left: auto !important; right: auto !important; }

body[class*="devise/"] #body_container { padding-left: 0; padding-right: 0; }
body[class*="devise/"] #body_container > .row { margin: 0; }
.l2d-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 28px; box-sizing: border-box; }
.l2d-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 36px 36px 28px;
  box-shadow: 0 24px 60px rgba(8,15,25,.35), 0 4px 14px rgba(8,15,25,.18); box-sizing: border-box; color: #1f2a37; }
.l2d-auth-card::before { content: ""; display: block; height: 4px; margin: -36px -36px 28px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #f37021, #fa8641 55%, #fbb36b); }
.l2d-auth-logo { text-align: center; }
.l2d-auth-logo img { max-width: 260px; width: 80%; height: auto; }
.l2d-auth-tagline { text-align: center; margin: 8px 0 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #e8711f; font-weight: 600; }
.l2d-auth-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: #1f2a37; line-height: 1.25; }
.l2d-auth-sub { margin: 0 0 22px; color: #64748b; font-size: 15px; }
.l2d-auth-field { margin-bottom: 16px; }
.l2d-auth-field label { display: block; font-weight: 600; font-size: 14px; color: #334155; margin-bottom: 6px; }
.l2d-auth .l2d-auth-input { display: block; width: 100%; height: 50px; padding: 12px 14px; font-size: 16px; color: #1f2a37;
  border: 1.5px solid #d6dde6; border-radius: 10px; background: #f8fafc; box-shadow: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.l2d-auth .l2d-auth-input::placeholder { color: #9aa6b5; }
.l2d-auth .l2d-auth-input:focus { outline: none; border-color: #fa8641; background: #fff; box-shadow: 0 0 0 4px rgba(250,134,65,.2); }
.l2d-auth .l2d-password-wrap { position: relative; }
.l2d-auth .l2d-password-wrap .l2d-auth-input { padding-right: 48px; }
.l2d-auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #64748b;
  cursor: pointer; padding: 8px 10px; font-size: 17px; line-height: 1; border-radius: 8px; }
.l2d-auth-eye:hover, .l2d-auth-eye:focus { color: #1f2a37; background: #eef2f6; outline: none; }
.l2d-auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; font-size: 14px; }
.l2d-auth-remember { display: flex; align-items: center; gap: 8px; margin: 0; }
.l2d-auth-remember input { width: 17px; height: 17px; margin: 0; accent-color: #f37021; }
.l2d-auth-remember label { margin: 0; font-weight: 500; color: #475569; }
.l2d-auth a { color: #0b8fd0; font-weight: 600; text-decoration: none; }
.l2d-auth a:hover, .l2d-auth a:focus { color: #e8711f; text-decoration: underline; }
.l2d-auth .l2d-auth-btn { display: block; width: 100%; min-height: 52px; padding: 13px 18px; font-size: 17px; font-weight: 700; letter-spacing: .01em;
  color: #fff; border: 0; border-radius: 10px; cursor: pointer; white-space: normal;
  background: linear-gradient(135deg, #fa8641 0%, #f37021 100%); box-shadow: 0 8px 20px rgba(243,112,33,.35);
  transition: transform .08s, box-shadow .15s, filter .15s; }
.l2d-auth .l2d-auth-btn:hover { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(243,112,33,.45); }
.l2d-auth .l2d-auth-btn:active { transform: translateY(1px); }
.l2d-auth .l2d-auth-btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(250,134,65,.35), 0 8px 20px rgba(243,112,33,.35); }
.l2d-auth .l2d-auth-btn[disabled] { opacity: .75; cursor: wait; }
.l2d-auth-alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: 14px; line-height: 1.4; }
.l2d-auth-alert-danger { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; border-left: 4px solid #dc2626; }
.l2d-auth-alert-info { background: #eff8ff; color: #175cd3; border: 1px solid #c7e3fb; border-left: 4px solid #00a9f5; }
.l2d-auth-errors #error_explanation { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.l2d-auth-errors #error_explanation h2 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: inherit; }
.l2d-auth-errors #error_explanation ul { margin: 0; padding-left: 18px; }
.l2d-auth-links { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef2f6; text-align: center; font-size: 14px; color: #64748b; }
.l2d-auth-links p { margin: 0 0 8px; }
.l2d-auth-links p:last-child { margin-bottom: 0; }
.l2d-auth-legal { margin: 22px 0 0; font-size: 13px; color: rgba(255,255,255,.7); text-align: center; }
.l2d-auth-legal a { color: #fff; font-weight: 500; }
.l2d-auth-legal a:hover { color: #fbb36b; }
@media (max-width: 480px) {
  .l2d-auth { padding: 20px 12px 18px; justify-content: flex-start; }
  .l2d-auth-card { padding: 28px 22px 22px; border-radius: 16px; }
  .l2d-auth-card::before { margin: -28px -22px 22px; border-radius: 16px 16px 0 0; }
  .l2d-auth-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .l2d-auth * { transition: none !important; } }
