/* Shiv27 Email Guard — box under the email field. Colours follow the ProHosty client theme. */
.eg-box { margin: 8px 0 14px; padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 13.5px; line-height: 1.45; text-align: left; }
.eg-box[hidden] { display: none; }
.eg-box .eg-line { margin: 0 0 6px; }
.eg-box .eg-line:last-child { margin-bottom: 0; }
.eg-box .eg-small { font-size: 12.5px; opacity: .85; }
/* v1.1.0: the "Send OTP" button at the end of the email field (client.js puts the field into .eg-wrap) */
.eg-wrap { position: relative; display: block; }
.eg-wrap.eg-has-inline > input { padding-right: 124px !important; }
.eg-inline { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); z-index: 3; appearance: none; height: calc(100% - 10px); min-height: 26px; max-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: #035ded; color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; }
.eg-inline[hidden] { display: none; }
.eg-inline:hover { background: #004bc3; }
.eg-inline:disabled { background: #94a3b8; color: #fff; cursor: default; opacity: 1 !important; }
.eg-inline.eg-inline-ok, .eg-inline.eg-inline-ok:disabled { background: #16a34a; color: #fff; opacity: 1 !important; }
.eg-inline:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(3, 93, 237, .3); }
.eg-inline-below { margin: 6px 0 0; }
.eg-inline-below.eg-inline-ok, .eg-inline-below.eg-inline-ok:disabled { background: #16a34a; opacity: 1; }
.eg-hint { background: transparent; border-color: transparent; color: #64748b; padding: 0 2px; margin: 4px 0 12px; font-size: 12.5px; }
.eg-busy { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
.eg-info { background: #eef4ff; border-color: #c7d8ff; color: #031974; }
.eg-err  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.eg-ok   { background: #ecfdf5; border-color: #bbf7d0; color: #166534; font-weight: 600; }
.eg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.eg-btn { appearance: none; border: 0; border-radius: 8px; padding: 8px 14px; background: #035ded; color: #fff; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; }
.eg-btn:hover { background: #004bc3; }
.eg-btn:disabled { opacity: .6; cursor: default; }
.eg-btn:focus-visible, .eg-link:focus-visible, .eg-code:focus { outline: none; box-shadow: 0 0 0 3px rgba(3, 93, 237, .25); }
.eg-link { appearance: none; border: 0; background: none; padding: 0; color: #035ded; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.eg-link:disabled { color: #64748b; text-decoration: none; cursor: default; }
.eg-code { width: 9.5em; max-width: 100%; padding: 8px 10px; border: 1px solid #c7d8ff; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; letter-spacing: 4px; }
.eg-code::placeholder { letter-spacing: normal; font-size: 14px; }
.eg-status { margin: 4px 0 6px; font-size: 13px; }
.eg-status:empty { display: none; }
.eg-status.eg-err { color: #b91c1c; background: none; border: 0; }
.eg-shake { animation: eg-shake .4s; }
@keyframes eg-shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .eg-shake { animation: none; } }

html[data-theme="dark"] .eg-hint { color: #94a3b8; }
html[data-theme="dark"] .eg-inline:disabled { background: #475569; color: #cbd5e1; }
html[data-theme="dark"] .eg-inline.eg-inline-ok, html[data-theme="dark"] .eg-inline.eg-inline-ok:disabled { background: #15803d; color: #fff; }
html[data-theme="dark"] .eg-busy { background: var(--ph-d-inset, #0d152b); border-color: var(--ph-d-line, #24314f); color: #94a3b8; }
html[data-theme="dark"] .eg-info { background: #10204a; border-color: #2b4a8f; color: var(--ph-d-link-strong, #c9dcff); }
html[data-theme="dark"] .eg-err  { background: #3a1416; border-color: #7f1d1d; color: #fecaca; }
html[data-theme="dark"] .eg-ok   { background: #0f2e22; border-color: #166534; color: #bbf7d0; }
html[data-theme="dark"] .eg-link { color: var(--ph-d-link, #7fb0ff); }
html[data-theme="dark"] .eg-code { background: var(--ph-d-surface, #111a33); border-color: var(--ph-d-line, #24314f); color: #e2e8f0; }
html[data-theme="dark"] .eg-status.eg-err { color: #fca5a5; }
