/* Login, register, password, verify and 2FA pages. Colours come from elitepath.css. */
*, *::before, *::after { box-sizing: border-box; }

html, body.ea-body { height: 100%; margin: 0; }

body.ea-body {
  font-family: var(--ep-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ep-text);
  background: #fff;
}

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

/* Brand panel */
.ea-brand {
  flex: 0 0 44%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 56px;
  color: #c9cde6;
  background:
    radial-gradient(620px 420px at 100% 0, rgba(214, 51, 154, .28), transparent 70%),
    radial-gradient(560px 460px at 0 100%, rgba(94, 196, 244, .20), transparent 70%),
    linear-gradient(160deg, var(--ep-navy) 0%, var(--ep-navy-2) 100%);
}

.ea-brand__logo img { display: block; height: 48px; width: auto; padding: 6px 10px; background: #fff; border-radius: 10px; }
.ea-brand__logo { align-self: flex-start; }

.ea-brand__body { margin: auto 0; }
.ea-brand h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ea-brand p { margin: 0 0 32px; font-size: 16px; }
.ea-brand ul { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ea-brand li { display: flex; gap: 14px; align-items: flex-start; }
.ea-brand li i {
  flex: 0 0 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ep-sky);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
}
.ea-brand li svg { width: 20px; height: 20px; }
.ea-brand li strong { display: block; margin-bottom: 2px; font-weight: 600; color: #fff; }
.ea-brand li span { font-size: 14px; }

.ea-brand__foot { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.ea-brand__foot a { color: #c9cde6; text-decoration: none; }
.ea-brand__foot a:hover { color: #fff; text-decoration: underline; }

/* Form side */
.ea-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 28px 40px 48px; }

.ea-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.ea-top__logo { display: none; margin-inline-end: auto; }
.ea-top__logo img { display: block; height: 38px; width: auto; }
.ea-top__back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ep-muted); text-decoration: none; }
.ea-top__back:hover { color: var(--ep-ink); }
.ea-top__back svg { width: 16px; height: 16px; }
[dir="rtl"] .ea-top__back svg { transform: scaleX(-1); }

.ea-panel { width: 100%; max-width: 440px; margin: auto; padding-top: 24px; }
.ea-panel h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--ep-ink); }
.ea-sub { margin: 0 0 24px; color: var(--ep-muted); }
.ea-sub a { color: var(--ep-magenta-d); }

.ea-form { display: grid; gap: 18px; }
.ea-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ea-field { min-width: 0; }
.ea-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ep-ink); }

.ea-field input[type="text"],
.ea-field input[type="email"],
.ea-field input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: var(--ep-ink);
  background: #fff;
  border: 1px solid #cfd3e3;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.ea-field input:focus { outline: 0; border-color: var(--ep-violet); box-shadow: 0 0 0 3px rgba(116, 102, 200, .2); }
.ea-field input[aria-invalid="true"] { border-color: #d92d20; }

.ea-pass { position: relative; }
.ea-pass input { padding-inline-end: 48px !important; }
.ea-pass__btn {
  position: absolute; top: 3px; inset-inline-end: 3px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  color: var(--ep-muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.ea-pass__btn:hover { color: var(--ep-ink); }
.ea-pass__btn[aria-pressed="true"] { color: var(--ep-magenta-d); }
.ea-pass__btn svg { width: 20px; height: 20px; }

.ea-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ep-muted); }
.ea-err { margin-top: 6px; font-size: 13px; font-weight: 500; color: #b42318; }

.ea-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ea-row a, .ea-switch a { font-weight: 600; color: var(--ep-magenta-d); text-decoration: none; }
.ea-row a:hover, .ea-switch a:hover { text-decoration: underline; }
.ea-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ea-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ep-magenta); }

.ea-btn {
  width: 100%;
  height: 48px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--ep-magenta);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.ea-btn:hover { background: var(--ep-magenta-d); }
.ea-btn:focus-visible, .ea-social__btn:focus-visible { outline: 3px solid rgba(116, 102, 200, .45); outline-offset: 2px; }

.ea-switch { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--ep-muted); }

.ea-msg { margin: 0 0 18px; padding: 12px 14px; font-size: 14px; border-radius: 10px; }
.ea-msg--ok { color: #0b6b4a; background: #e8f7f1; border: 1px solid #bfe9d9; }
.ea-msg--err { color: #912018; background: #fef3f2; border: 1px solid #fecdca; }

/* Social sign-in */
.ea-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ea-social__btn {
  height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  color: var(--ep-ink);
  background: #fff;
  border: 1px solid #cfd3e3;
  border-radius: 10px;
  text-decoration: none;
}
.ea-social__btn:hover { background: var(--ep-bg); }
.ea-social__btn i { font-style: normal; font-weight: 800; color: var(--ep-violet); }
.ea-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--ep-muted); }
.ea-or::before, .ea-or::after { content: ""; flex: 1; height: 1px; background: var(--ep-line); }

/* Captcha */
.ea-captcha { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.ea-captcha input { flex: 1 1 120px; width: auto !important; }
.ea-captcha img { border-radius: 8px; }

/* Two-factor */
.ea-qr { text-align: center; }
.ea-qr img { max-width: 180px; height: auto; padding: 8px; border: 1px solid var(--ep-line); border-radius: 12px; }
.ea-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.ea-field .ea-code input { height: 54px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; }

@media (max-width: 960px) {
  .ea { display: block; }
  .ea-brand { display: none; }
  .ea-main { min-height: 100vh; padding: 16px 20px 40px; }
  .ea-top { justify-content: space-between; }
  .ea-top__logo { display: block; }
  .ea-panel { margin: 0 auto; padding-top: 32px; }
}

@media (max-width: 420px) {
  .ea-two { grid-template-columns: 1fr; gap: 18px; }
  .ea-panel h1 { font-size: 24px; }
  .ea-code { gap: 6px; }
  .ea-field .ea-code input { height: 48px; font-size: 20px; }
}

/* Authenticator app */
.ea-2fa-lead { margin: 0 0 16px; color: var(--ep-text, #2b3052); line-height: 1.6; }
.ea-2fa-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; }
.ea-2fa-qr svg { width: 200px; height: 200px; padding: 8px; background: #fff; border: 1px solid var(--ep-line, #e6e8f1); border-radius: 10px; }
.ea-2fa-manual { margin: 12px 0 16px; font-size: 14px; }
.ea-2fa-manual summary, .ea-2fa-box summary { cursor: pointer; font-weight: 600; }
.ea-2fa-manual code { display: block; margin: 8px 0 4px; padding: 10px; background: var(--ep-bg, #f5f6fb); border-radius: 8px; font-size: 14px; letter-spacing: .5px; word-break: break-word; }
.ea-2fa-box { margin: 0 0 14px; padding: 16px; border: 1px solid var(--ep-line, #e6e8f1); border-radius: 12px; }
.ea-2fa-box h2 { margin: 0 0 8px; font-size: 18px; }
.ea-2fa-box p { margin: 8px 0 12px; font-size: 14px; line-height: 1.55; }
.ea-2fa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.ea-2fa-codes code { display: block; padding: 8px; background: var(--ep-bg, #f5f6fb); border-radius: 8px; text-align: center; font-size: 14px; }
.ea-2fa-secondary { display: block; width: 100%; padding: 12px; font: inherit; color: inherit; background: #fff; border: 1px solid var(--ep-line, #e6e8f1); border-radius: 10px; font-weight: 600; cursor: pointer; }
.ea-2fa-danger { color: #b3261e; border-color: #e7b3af; }
a.ea-2fa-link { display: flex; align-items: center; justify-content: center; margin-top: 10px; text-decoration: none; }
.ea-2fa-ok { margin: 0 0 14px; padding: 12px; border-radius: 10px; background: #eefaf5; color: #0c6a49; font-size: 14px; }
.ea-2fa-back { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: inherit; }
.ea-2fa-cancel { margin-top: 10px; text-align: center; }
.ea-2fa-cancel button { padding: 4px; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* Guest order page */
.ea-order-items { margin: 0 0 14px; padding: 0; list-style: none; }
.ea-order-items li { padding: 14px 0; border-bottom: 1px solid var(--ep-line, #e6e8f1); }
.ea-order-items b { display: block; margin-bottom: 8px; }
.ea-order-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-order-links a { flex: 1 1 120px; width: auto; text-align: center; text-decoration: none; }
.ea-order-invoice { margin: 0 0 14px; text-align: center; text-decoration: none; box-sizing: border-box; }
