.ep-auth-open { overflow: hidden; }
.ep-auth-entry { width: 100%; min-height: 42px; margin-bottom: 12px; border: 1px solid #c6d3e1; border-radius: 10px; color: #0c447c; background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.ep-auth-entry:hover { background: #f4f8fc; }
.ep-auth-entry.is-authenticated { overflow: hidden; padding: 0 12px; text-overflow: ellipsis; white-space: nowrap; }
.ep-auth-backdrop { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; background: rgba(18, 31, 49, .62); backdrop-filter: blur(3px); }
.ep-auth-backdrop[hidden] { display: none; }
.ep-auth-dialog { width: min(100%, 560px); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 30px 20px; border: 1px solid #dbe4ee; border-radius: 14px; color: #17212b; background: #fff; box-shadow: 0 30px 90px rgba(9, 28, 51, .28); font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.ep-auth-header { display: flex; align-items: center; justify-content: space-between; }
.ep-auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #17212b; font-size: 18px; font-weight: 800; text-decoration: none; }
.ep-auth-brand img { width: 34px; height: 34px; }
.ep-auth-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; color: #647587; background: transparent; font-size: 28px; cursor: pointer; }
.ep-auth-close:hover { color: #17212b; background: #f7f9fc; }
.ep-auth-intro { margin: 10px 0 12px; text-align: center; }
.ep-auth-intro h2 { margin: 0; font-size: 25px; line-height: 1.35; letter-spacing: -.025em; }
.ep-auth-intro p { margin: 6px 0 0; color: #647587; font-size: 14px; }
.ep-auth-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; width: min(100%, 340px); margin: 0 auto 16px; padding: 0; list-style: none; }
.ep-auth-progress li { position: relative; display: flex; align-items: center; gap: 9px; color: #8a98a9; font-size: 13px; }
.ep-auth-progress li:first-child::after { position: absolute; top: 50%; left: calc(100% + 10px); width: 24px; height: 1px; background: #c6d3e1; content: ""; }
.ep-auth-progress span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #edf1f6; font-weight: 800; }
.ep-auth-progress .is-active { color: #185fa5; }
.ep-auth-progress .is-active span { color: #fff; background: #185fa5; }
.ep-auth-form { padding-top: 16px; border-top: 1px solid #dbe4ee; }
.ep-auth-field-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.ep-auth-field-head label { font-size: 14px; font-weight: 750; }
.ep-auth-method, .ep-auth-resend { min-height: 36px; padding: 0; border: 0; color: #185fa5; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.ep-auth-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; }
.ep-auth-dialog input { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid #c6d3e1; color: #17212b; background: #fff; font: inherit; font-size: 15px; outline: none; }
.ep-auth-dialog input:focus { position: relative; z-index: 1; border-color: #185fa5; box-shadow: 0 0 0 3px rgba(24, 95, 165, .13); }
.ep-auth-identity-row input { border-radius: 10px 0 0 10px; }
.ep-auth-send { border: 1px solid #185fa5; border-radius: 0 10px 10px 0; color: #185fa5; background: #e6f1fb; font: inherit; font-weight: 750; cursor: pointer; }
.ep-auth-send:hover:not(:disabled) { color: #fff; background: #185fa5; }
.ep-auth-error { min-height: 18px; margin: 4px 0 0; color: #a23831; font-size: 12px; }
.ep-auth-status { min-height: 0; margin: 4px 0 0; color: #177a5b; font-size: 12px; font-weight: 650; }
.ep-auth-code { margin-top: 10px; }
.ep-auth-code[hidden] { display: none; }
.ep-auth-code input { border-radius: 10px; font-size: 20px; font-weight: 750; letter-spacing: .48em; text-align: center; }
.ep-auth-code > p { margin: 5px 0 0; color: #647587; font-size: 12px; }
.ep-auth-resend:disabled { color: #96a3b1; }
.ep-auth-note { display: flex; align-items: center; gap: 7px; margin: 10px 0; color: #647587; font-size: 12px; }
.ep-auth-note::before { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #c6d3e1; border-radius: 999px; color: #185fa5; content: "i"; font-size: 11px; font-weight: 800; }
.ep-auth-submit, .ep-auth-google { width: 100%; min-height: 48px; border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.ep-auth-submit { border: 1px solid #185fa5; color: #fff; background: #185fa5; }
.ep-auth-submit:disabled { border-color: #cad5e1; background: #cad5e1; cursor: not-allowed; }
.ep-auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: #647587; font-size: 12px; }
.ep-auth-divider::before, .ep-auth-divider::after { flex: 1; height: 1px; background: #dbe4ee; content: ""; }
.ep-auth-google { border: 1px solid #c6d3e1; color: #17212b; background: #fff; }
.ep-auth-google img { width: 20px; height: 20px; margin-right: 9px; vertical-align: -4px; }
.ep-auth-terms { margin: 12px 0 0; color: #647587; font-size: 11px; line-height: 1.55; text-align: center; }
.ep-auth-terms a { color: #185fa5; text-decoration: none; }
.ep-auth-account { padding: 34px 0 18px; text-align: center; }
.ep-auth-account[hidden] { display: none; }
.ep-auth-account img { width: 54px; height: 54px; }
.ep-auth-account h2 { margin: 14px 0 6px; }
.ep-auth-account p { margin: 0 0 22px; color: #647587; }
.ep-auth-account button { min-height: 44px; padding: 0 24px; border: 1px solid #c6d3e1; border-radius: 10px; color: #a23831; background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.ep-auth-dialog button:focus-visible, .ep-auth-dialog a:focus-visible, .ep-auth-dialog input:focus-visible, .ep-auth-entry:focus-visible { outline: 3px solid rgba(24, 95, 165, .3); outline-offset: 2px; }
@media (max-width: 640px) {
  .ep-auth-backdrop { align-items: end; padding: 0; }
  .ep-auth-dialog { width: 100%; max-height: 92vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .ep-auth-intro h2 { font-size: 23px; }
  .ep-auth-identity-row { grid-template-columns: minmax(0, 1fr) 106px; }
}
@media (prefers-reduced-motion: reduce) { .ep-auth-dialog * { transition: none !important; } }
