/* Sign-in pages (customer and business): cream page, gold accents, the nails picture behind.
   Used by Pages/ClientLogin.cshtml and Areas/Identity/Pages/Account/Login.cshtml. */
:root {
    --lx-bg: #fbf1e9; --lx-border: #e6dccb; --lx-gold: #b98a2e; --lx-gold-dk: #8c6520;
    --lx-text: #1c1a16; --lx-muted: #6e685d;
    --lx-goldgrad: linear-gradient(135deg,#f0cf85,#d7a84a 55%,#c2902f);
    --lx-disp: 'Playfair Display',Georgia,serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.lx { font-family: 'Nunito',system-ui,sans-serif; font-size: 16px; color: var(--lx-text); -webkit-font-smoothing: antialiased;
    background: var(--lx-bg) url('/images/login-bg.jpg') center top / cover no-repeat fixed; }
.lx a { color: inherit; }

.lx-page { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,516px) minmax(0,1fr); align-items: center; gap: 0 28px; max-width: 1760px; margin: 0 auto; padding: 32px 28px; }

/* left: welcome */
.lx-intro { justify-self: center; align-self: stretch; display: flex; flex-direction: column; width: 100%; max-width: 450px; padding: 24px 0; }
.lx-brand { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 4px; text-decoration: none; }
    .lx-brand img { height: 54px; width: auto; }
    .lx-brand img.round { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
    .lx-brand span { font: 700 2rem/1 var(--lx-disp); }
.lx-hello { margin: auto 0; padding: 28px 0; }
    .lx-hello h2 { margin: 0; font: 500 clamp(2.4rem,4.2vw,3.7rem)/1.08 var(--lx-disp); letter-spacing: -.01em; }
        .lx-hello h2 em { display: block; font-style: normal; font-weight: 700; background: linear-gradient(90deg,#96691a,#dcae45); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
    .lx-hello > p { margin: 14px 0 0; font-size: 1.3rem; line-height: 1.35; max-width: 22em; }
.lx-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
    .lx-points li { display: flex; align-items: center; gap: 22px; }
    .lx-points i { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: #fbf0dc; color: var(--lx-gold-dk); font-size: 1.6rem; box-shadow: 0 10px 22px -16px rgba(60,45,10,.5); }
    .lx-points b { display: block; font-size: 1.06rem; }
    .lx-points span { font-size: .98rem; color: #2f2c26; }

/* middle: the card */
.lx-card { grid-column: 2; width: 100%; background: rgba(255,255,255,.96); border: 1px solid rgba(230,220,203,.8); border-radius: 30px; padding: 38px 34px 28px; box-shadow: 0 30px 60px -34px rgba(60,45,10,.5); text-align: center; animation: lx-in .4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes lx-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lx-logo img { height: 60px; width: auto; }
    .lx-logo img.round { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.lx-title { margin: 10px 0 0; font: 600 2.05rem/1.2 var(--lx-disp); letter-spacing: -.01em; }
.lx-sub { margin: 8px 0 0; color: var(--lx-muted); font-size: .98rem; line-height: 1.5; }
.lx-card form { margin: 0; }
#external-account { margin-top: 28px; }

.btn-social { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 17px 16px; margin-bottom: 10px; border: 1.5px solid var(--lx-border); border-radius: 999px; background: #fff; color: var(--lx-text); font: 700 1.12rem 'Nunito',sans-serif; cursor: pointer; transition: border-color .15s, transform .1s; }
    .btn-social:hover:not(:disabled) { border-color: var(--lx-gold); transform: translateY(-1px); }
    .btn-social:disabled { opacity: .5; cursor: not-allowed; }
    .btn-social .icon-wrap { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; }
.google-icon { width: 28px; height: 28px; }
.divider { display: flex; align-items: center; gap: 16px; margin: 22px 0; color: #4d4a43; font-size: .95rem; }
    .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--lx-border); }

.field-wrap { position: relative; margin-bottom: 22px; text-align: left; }
    .field-wrap .field-icon { position: absolute; left: 22px; top: 29px; transform: translateY(-50%); color: var(--lx-muted); font-size: 1.25rem; pointer-events: none; }
.form-input { width: 100%; height: 58px; padding: 0 20px 0 60px; border: 1.5px solid var(--lx-border); border-radius: 999px; background: #fff; font: 400 1.08rem 'Nunito',sans-serif; color: var(--lx-text); outline: 0; transition: border-color .15s, box-shadow .15s; }
    .form-input.plain { padding-left: 24px; text-align: center; }
    .form-input:focus { border-color: var(--lx-gold); box-shadow: 0 0 0 4px rgba(185,138,46,.15); }
    .form-input::placeholder { color: #8b857a; }
.field-error { display: block; margin: 6px 0 0 22px; color: #b42318; font-size: .85rem; }
    .field-error:empty { display: none; }
.btn-primary-cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px; border: 0; border-radius: 999px; background: var(--lx-goldgrad); color: #1c1a16; font: 700 1.18rem 'Nunito',sans-serif; cursor: pointer; box-shadow: 0 14px 24px -16px rgba(140,101,32,.9), inset 0 -2px 0 rgba(0,0,0,.08); transition: filter .15s, transform .1s; }
    .btn-primary-cta::after { content: "\2192"; font-size: 1.25rem; line-height: 1; }
    .btn-primary-cta:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
    .btn-primary-cta:disabled { opacity: .6; cursor: not-allowed; }

.section-divider { border: 0; border-top: 1px solid var(--lx-border); margin: 28px 0 22px; }
.footer-text { margin: 0 0 8px; font-size: 1rem; }
.footer-link { color: var(--lx-gold-dk) !important; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
    .footer-link:hover { text-decoration: underline; }
.security-note { margin-top: 30px; font-size: .9rem; color: var(--lx-muted); }
    .security-note i { margin-right: 6px; }
    .security-note a { color: var(--lx-text); text-decoration: none; }
        .security-note a:hover { text-decoration: underline; }
.lx-alert { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.5; text-align: left; background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c12; }
    .lx-alert.ok { background: #ecf8f0; border-color: #b9e2c6; color: #14532d; }
    .lx-alert ul { margin: 0; padding-left: 18px; }
    .lx-alert:empty, .lx-alert.validation-summary-valid { display: none; }
.lx-small { margin: 18px 0 0; font-size: .82rem; color: var(--lx-muted); line-height: 1.5; }

@media (max-width: 1180px) {
    .lx-page { grid-template-columns: minmax(0,1fr) minmax(0,500px); }
    .lx-points { display: none; }
    .lx-hello > p { font-size: 1.1rem; }
}
@media (max-width: 860px) {
    body.lx { background-attachment: scroll; background-size: 215% auto; background-position: 88% 0; }
    .lx-page { grid-template-columns: minmax(0,1fr); padding: 34vw 14px 28px; align-items: start; }
    .lx-intro { display: none; }
    .lx-card { grid-column: 1; max-width: 516px; justify-self: center; padding: 28px 20px 22px; border-radius: 24px; }
    .lx-title { font-size: 1.7rem; }
    .btn-social, .btn-primary-cta { font-size: 1.05rem; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { .lx-card { animation: none; } }

/* password step (customer and business) */
.email-row { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; padding: 12px 16px; border: 1.5px solid var(--lx-border); border-radius: 18px; background: #fffaf4; text-align: left; }
    .email-row .avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lx-goldgrad); color: #1c1a16; font-size: 1.2rem; }
    .email-row .who { flex: 1; min-width: 0; }
        .email-row .who small { display: block; color: var(--lx-muted); font-size: .8rem; }
        .email-row .who span { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .email-row .change { color: var(--lx-gold-dk); font-weight: 700; font-size: .92rem; text-decoration: none; }
        .email-row .change:hover { text-decoration: underline; }
.field-wrap .toggle-icon { position: absolute; right: 12px; top: 29px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--lx-muted); font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
    .field-wrap .toggle-icon:hover { color: var(--lx-text); }
.field-wrap:has(.toggle-icon) .form-input { padding-right: 58px; }
.field-wrap:has(+ .field-error:not(:empty)) { margin-bottom: 0; }
.field-wrap + .field-error:not(:empty) { margin-bottom: 14px; text-align: left; }
.options-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 4px 22px; font-size: .95rem; }
.checkbox-row { display: inline-flex; align-items: center; gap: 9px; }
.check-input { width: 18px; height: 18px; accent-color: #a67b22; cursor: pointer; }
.check-label { cursor: pointer; }
.forgot-link { color: var(--lx-gold-dk) !important; font-weight: 700; text-decoration: none; }
    .forgot-link:hover { text-decoration: underline; }
.alert-error { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.5; text-align: left; background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c12; }
    .alert-error ul { margin: 0; padding-left: 18px; }
    .alert-error.validation-summary-valid { display: none; }
.powered-by { margin-top: 10px; font-size: .82rem; color: var(--lx-muted); }
    .powered-by a { color: var(--lx-gold-dk); font-weight: 700; text-decoration: none; }
.btn-primary-cta.plain::after { content: none; }
