/* My Epiphany sign-in pop-up. Everything is scoped under .me-auth so it can't disturb the site. */
.me-auth {
  --me-blue: #009EE3;
  --me-blue-dark: #0080B8;
  --me-ink: #1f2328;
  --me-muted: #5f6b76;
  --me-line: #d5dbe1;
  --me-bg: #ffffff;
  --me-err: #b42318;
  --me-ok: #067647;
  padding: 0;
  border: 0;
  border-radius: 14px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--me-bg);
  color: var(--me-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  font-size: 15px;
  line-height: 1.45;
}
.me-auth::backdrop { background: rgba(10, 16, 24, .55); backdrop-filter: blur(2px); }
.me-auth[open] { animation: me-auth-in .18s ease-out; }
@keyframes me-auth-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .me-auth[open] { animation: none; } }

.me-auth [hidden] { display: none !important; }
.me-auth *, .me-auth *::before, .me-auth *::after { box-sizing: border-box; }
.me-auth__card { position: relative; padding: 28px 28px 24px; }
.me-auth__close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
  border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--me-muted);
  border-radius: 50%; cursor: pointer;
}
.me-auth__close:hover { background: #eef2f5; color: var(--me-ink); }

.me-auth__head { background: none; padding: 0; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.me-auth__logo { width: 44px; height: 44px; border-radius: 50%; }
.me-auth__title { margin: 0; padding: 0; background: none; font-family: inherit; font-size: 22px; font-weight: 700; color: var(--me-ink); letter-spacing: 0; text-transform: none; }

.me-auth__alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: #fef3f2; color: var(--me-err); border: 1px solid #fecdca; }
.me-auth__alert.is-ok { background: #ecfdf3; color: var(--me-ok); border-color: #abefc6; }

.me-auth__panel { margin: 0; }
.me-auth__field { display: block; margin: 0 0 14px; font-weight: 400; }
.me-auth__field > span:first-child { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--me-ink); }
.me-auth__field small { display: block; margin-top: 5px; font-size: 12px; color: var(--me-muted); }
.me-auth__field small.is-err { color: var(--me-err); }
.me-auth input[type=email], .me-auth input[type=password], .me-auth input[type=text] {
  display: block; width: 100%; height: 42px; margin: 0; padding: 8px 12px;
  font-size: 15px; color: var(--me-ink); background: #fff;
  border: 1px solid var(--me-line); border-radius: 8px; box-shadow: none;
}
.me-auth input:focus { outline: none; border-color: var(--me-blue); box-shadow: 0 0 0 3px rgba(0, 158, 227, .2); }
.me-auth input.is-err { border-color: var(--me-err); }
.me-auth__pw { position: relative; display: block; }
.me-auth__pw input { padding-right: 64px !important; }
.me-auth__show {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--me-blue-dark); font-size: 13px; font-weight: 600; padding: 6px 8px; cursor: pointer;
}

.me-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 16px; }
.me-auth__check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 400; margin: 0 0 14px; cursor: pointer; }
.me-auth__row .me-auth__check { margin: 0; }
.me-auth__check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--me-blue); }

.me-auth__btn {
  display: block; width: 100%; height: 44px; margin: 0 0 10px; border: 0; border-radius: 8px;
  background: var(--me-blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.me-auth__btn:hover { background: var(--me-blue-dark); }
.me-auth__btn:disabled { opacity: .6; cursor: progress; }
.me-auth__btn--ghost { background: transparent; color: var(--me-blue-dark); border: 1px solid var(--me-line); }
.me-auth__btn--ghost:hover { background: #f2f7fa; }

.me-auth a { color: var(--me-blue-dark); text-decoration: none; }
.me-auth a:hover { text-decoration: underline; }
.me-auth__link { font-size: 13.5px; }
.me-auth__switch { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--me-muted); }
.me-auth__fine { margin: 4px 0 0; font-size: 12px; color: var(--me-muted); text-align: center; }
.me-auth__lead { margin: 0 0 16px; font-size: 15px; }
.me-auth__muted { color: var(--me-muted); font-size: 14px; }
.me-auth__icon { font-size: 40px; line-height: 1; color: var(--me-blue); margin: 0 0 8px; }
.me-auth__captcha { margin: 0 0 14px; min-height: 0; }
.me-auth__captcha:not(:empty) { min-height: 78px; }

/* Nav button */
.me-auth-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.me-auth-btn:focus-visible { outline: 2px solid #009EE3; outline-offset: 3px; border-radius: 50%; }

@media (max-width: 420px) {
  .me-auth__card { padding: 22px 18px 18px; }
}
