/* ══════════════════════════════════════════════════════════════════════
   Client Portal — Auth screens (login, set password, invite expired)
   Split layout: tenant detail/features on the left, form on the right.
   Uses the Classic theme's own palette (crimson brass, serif/sans pair).
   ══════════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; font-family: 'Lato', system-ui, -apple-system, sans-serif;
    color: #14100f; background: #fff;
}

.cp-shell { min-height: 100vh; display: flex; }

/* ── Left panel: tenant detail + features ────────────────────────────── */
.cp-aside {
    flex: 1 1 46%; max-width: 560px; background: #0f0c0b; color: #fff;
    padding: 56px 56px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.cp-aside::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(193,39,45,.18) 0%, transparent 60%);
    pointer-events: none;
}
.cp-aside > * { position: relative; z-index: 1; }

.cp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 64px; }
.cp-brand img { max-height: 42px; max-width: 160px; object-fit: contain; }
.cp-brand span { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem; }

.cp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #f2a8ac; margin-bottom: 16px;
}
.cp-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: #c1272d; display: inline-block; }
.cp-heading {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 2rem;
    line-height: 1.25; margin-bottom: 16px;
}
.cp-desc { color: #c7c0ba; font-size: .96rem; line-height: 1.7; margin-bottom: 40px; max-width: 420px; }

.cp-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.cp-feature { display: flex; align-items: flex-start; gap: 14px; }
.cp-feature-icon {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(193,39,45,.16);
    color: #e8747a; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.cp-feature-text strong { display: block; font-size: .92rem; color: #fff; margin-bottom: 2px; }
.cp-feature-text span { font-size: .84rem; color: #a39d97; line-height: 1.5; }

.cp-tenant-detail { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.cp-tenant-detail div { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: #a39d97; }
.cp-tenant-detail i { color: #c1272d; width: 14px; flex-shrink: 0; }

/* ── Right panel: form ────────────────────────────────────────────────── */
.cp-main { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.cp-form-wrap { width: 100%; max-width: 380px; }
.cp-form-mobile-brand { display: none; }

.cp-form-heading { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.5rem; color: #14100f; margin-bottom: 8px; }
.cp-form-sub { color: #5c5652; font-size: .92rem; line-height: 1.6; margin-bottom: 28px; }

.cp-alert {
    display: flex; align-items: center; gap: 8px; background: #fbe9e9; color: #9c1f24;
    border: 1px solid #f3c9cb; border-radius: 4px; padding: 12px 14px; font-size: .84rem; margin-bottom: 20px;
}

.cp-field { margin-bottom: 18px; }
.cp-label { display: block; font-size: .78rem; font-weight: 700; color: #5c5652; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.cp-input-wrap { position: relative; }
.cp-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8f8883; font-size: .88rem; }
.cp-input {
    width: 100%; padding: 12px 14px 12px 40px; border: 1px solid #e7e3df; border-radius: 4px;
    font-family: 'Lato', sans-serif; font-size: .92rem; color: #14100f; background: #fff; transition: border-color .15s;
}
.cp-input:focus { outline: none; border-color: #c1272d; }
.cp-input.is-invalid { border-color: #c1272d; }

.cp-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .86rem; color: #5c5652; }

.cp-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #c1272d; color: #fff; border: none; border-radius: 4px; padding: 13px; cursor: pointer;
    font-family: 'Lato', sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: .02em;
    text-decoration: none; transition: background .15s;
}
.cp-btn:hover { background: #9c1f24; color: #fff; }

.cp-footer { text-align: center; margin-top: 28px; color: #8f8883; font-size: .78rem; }

@media (max-width: 900px) {
    .cp-shell { flex-direction: column; }
    .cp-aside { max-width: none; padding: 40px 28px; }
    .cp-features { margin-bottom: 32px; }
    .cp-main { padding: 40px 24px 56px; }
}
@media (max-width: 600px) {
    .cp-heading { font-size: 1.6rem; }
    .cp-aside { padding: 32px 22px; }
}
