.ep-auth {
    --auth-ink: #242033;
    --auth-muted: #706b7e;
    --auth-brand: #6842df;
    margin: 0;
    color: var(--auth-ink);
    background: #f7f6fa;
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ep-auth *, .ep-auth *::before, .ep-auth *::after { box-sizing: border-box; }
.ep-auth a { color: var(--auth-brand); text-decoration: none; }
.ep-auth a:hover { text-decoration: underline; }
.ep-auth :focus-visible { outline: 3px solid #a18aee; outline-offset: 4px; }
.ep-auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; padding: 20px; gap: 20px; }
.ep-auth-story { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 42px 48px; border-radius: 24px; background: #27203e; color: #fff; }
.ep-auth-brand { display: inline-flex; align-self: flex-start; }
.ep-auth-brand img { display: block; width: 210px; max-width: 100%; height: 42px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.ep-auth-intro { position: relative; z-index: 1; margin: auto 0; padding: 64px 0 40px; }
.ep-auth-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: #c6bbdf; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.ep-auth-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c6ef87; }
.ep-auth-story h2 { max-width: 460px; margin: 0 0 24px; font-size: clamp(34px, 4vw, 60px); font-weight: 550; line-height: 1.1; letter-spacing: -2px; }
.ep-auth-story h2 em { color: #c8b3ff; font-style: normal; }
.ep-auth-description { max-width: 340px; margin: 0; color: #c6bbd8; line-height: 1.75; }
.ep-auth-art { width: 100%; max-width: 420px; height: 190px; display: block; margin: 28px 0 0; overflow: visible; }
.ep-auth-story-footer { display: flex; align-items: center; gap: 10px; color: #c6bbd8; font-size: 12px; }
.ep-auth-story-footer span + span::before { content: '/'; margin-right: 10px; color: #79678f; }
.ep-auth-content { display: flex; flex-direction: column; min-width: 0; padding: 22px 34px; }
.ep-auth-back { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--auth-muted) !important; }
.ep-auth-back svg { width: 16px; height: 16px; }
.ep-auth-form-wrap { width: 100%; max-width: 380px; margin: auto; padding: 58px 0; }
.ep-auth-form-wrap h1 { margin: 0 0 10px; font-size: 34px; font-weight: 650; letter-spacing: -1.1px; line-height: 1.2; }
.ep-auth-lead { color: var(--auth-muted); margin: 0 0 34px; font-size: 14px; }
.ep-auth-field { margin-bottom: 22px; }
.ep-auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ep-auth-input { width: 100%; min-height: 50px; border: 1px solid #dcd8e5; border-radius: 10px; background: #fff; padding: 12px 14px; color: var(--auth-ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.ep-auth-input::placeholder { color: #928d9e; }
.ep-auth-input:focus { outline: none; border-color: var(--auth-brand); box-shadow: 0 0 0 3px #6842df18; }
.ep-auth-input[aria-invalid=true] { border-color: #bd384e; }
.ep-auth-password { position: relative; }
.ep-auth-password .ep-auth-input { padding-right: 50px; }
.ep-auth-reveal { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #80798e; cursor: pointer; }
.ep-auth-reveal:hover { color: var(--auth-brand); background: #f4f0fd; }
.ep-auth-reveal svg { width: 20px; height: 20px; }
.ep-auth-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 28px; font-size: 12px; }
.ep-auth-remember { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); cursor: pointer; }
.ep-auth-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-brand); }
.ep-auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: var(--auth-brand); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ep-auth-submit:hover { background: #5430c5; }
.ep-auth-submit svg { width: 18px; height: 18px; }
.ep-auth-divider { display: flex; align-items: center; gap: 16px; margin: 26px 0 20px; color: #817b8e; font-size: 12px; }
.ep-auth-divider::before, .ep-auth-divider::after { content: ''; height: 1px; background: #e4e0ec; flex: 1; }
.ep-auth-socials { display: flex; gap: 12px; }
.ep-auth-socials a { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; min-height: 46px; border: 1px solid #dcd8e5; border-radius: 10px; background: #fff; color: var(--auth-ink); font-size: 13px; font-weight: 500; }
.ep-auth-socials a:hover { border-color: #a899ce; background: #fbfaff; text-decoration: none; }
.ep-auth-socials svg { width: 18px; height: 18px; }
.ep-auth-register { margin: 28px 0 0; text-align: center; color: var(--auth-muted); font-size: 13px; }
.ep-auth-register a { font-weight: 600; margin-left: 3px; }
.ep-auth-footer { margin: 0; color: #8b8498; text-align: center; font-size: 12px; }
.ep-auth-errors { padding: 12px 14px; margin: 0 0 24px; border: 1px solid #efcbd2; border-radius: 10px; background: #fff3f5; color: #a32b42; font-size: 13px; }
.ep-auth-errors p { margin: 0; }
.ep-auth-errors p + p { margin-top: 6px; }
.ep-auth-field small { display: block; color: var(--auth-muted); font-size: 12px; margin-top: 7px; }
.ep-auth [hidden] { display: none !important; }
@media (min-width: 1450px) { .ep-auth-shell { max-width: 1600px; margin: auto; } .ep-auth-story { padding: 48px 64px; } }
@media (max-width: 900px) { .ep-auth-story { padding: 32px; } .ep-auth-content { padding: 22px 16px; } .ep-auth-story h2 { font-size: 40px; } }
@media (max-width: 700px) {
    .ep-auth-shell { display: block; padding: 16px; }
    .ep-auth-story { padding: 24px; border-radius: 16px; }
    .ep-auth-brand img { width: 180px; height: 32px; }
    .ep-auth-intro, .ep-auth-story-footer { display: none; }
    .ep-auth-content { min-height: calc(100svh - 112px); padding: 20px 12px 12px; }
    .ep-auth-form-wrap { padding: 36px 0; }
    .ep-auth-form-wrap h1 { font-size: 30px; }
    .ep-auth-lead { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ep-auth * { transition: none !important; } }
