/* Κάρτα σύνδεσης και pop-up (κοινά για τις δημόσιες σελίδες και το διαχειριστικό) */
.login-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(15, 32, 64, 0.24); overflow: hidden; color: #14233F; text-align: left; }
.login-main { padding: 40px 40px 32px; }
.login-card h1 { margin: 0 0 8px; font-size: 2.4rem; line-height: 1.1; color: #14233F; font-weight: 800; }
.login-sub { margin: 0 0 28px; color: #5B6B82; font-size: 1.05rem; line-height: 1.45; }
.login-card .alert { margin: 0 0 16px; }
.lf { position: relative; margin-bottom: 16px; }
.lf[hidden] { display: none; }
.lf input { width: 100%; height: 56px; box-sizing: border-box; border: 1px solid #D5DEEA; border-radius: 12px; padding: 0 52px; font-size: 1.05rem; background: #fff; color: #14233F; font-family: inherit; }
.lf input::placeholder { color: #8A98AE; }
.lf input:focus { outline: none; border-color: #1C7CC5; box-shadow: 0 0 0 3px rgba(28, 124, 197, 0.18); }
.lf-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6F7F96; display: grid; pointer-events: none; }
.lf-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; cursor: pointer; color: #6F7F96; border-radius: 8px; display: grid; }
.lf-eye:hover, .lf-eye:focus-visible { color: #14233F; background: #EEF2F8; outline: none; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.login-check { display: flex; align-items: center; gap: 10px; color: #14233F; cursor: pointer; }
.login-check input { width: 20px; height: 20px; accent-color: #1C7CC5; }
.login-link { background: none; border: 0; padding: 0; color: #1C7CC5; font: inherit; cursor: pointer; }
.login-link:hover { text-decoration: underline; }
.login-note { margin: -8px 0 18px; padding: 10px 12px; background: #F1F6FC; border-radius: 10px; color: #44546B; font-size: 0.95rem; }
.login-note[hidden] { display: none; }
.login-submit { width: 100%; height: 56px; border: 0; border-radius: 12px; background: #1C7CC5; color: #fff; font-size: 1.15rem; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 12px; cursor: pointer; font-family: inherit; }
.login-submit:hover { background: #1769A8; }
.login-submit:disabled { opacity: 0.6; cursor: progress; }
.login-arrow { display: grid; }
.login-help { display: flex; gap: 18px; align-items: center; background: #EEF2F8; padding: 22px 40px; color: #44546B; font-size: 0.95rem; line-height: 1.5; }
.login-help strong { display: block; color: #14233F; }
.login-help-icon { color: #14508A; display: grid; flex: none; }
@media (max-width: 520px) {
  .login-main { padding: 28px 22px 24px; }
  .login-help { padding: 18px 22px; }
  .login-card h1 { font-size: 2rem; }
}

/* Δεύτερος παράγοντας: μέθοδοι, QR, κωδικοί ανάκτησης */
.login-outline { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 50px; margin: 0 0 16px; border: 1.5px solid #1C7CC5; border-radius: 12px; color: #14508A; font: inherit; font-weight: 700; background: #fff; cursor: pointer; }
.login-outline:hover { background: #F1F7FC; }
.sf-methods { display: flex; gap: 8px; margin: 0 0 16px; }
.sf-methods:empty { display: none; }
.sf-tab { flex: 1; height: 44px; border: 1.5px solid #D5DEEA; border-radius: 10px; background: #fff; color: #44546B; font: inherit; font-weight: 600; cursor: pointer; }
.sf-tab.is-active { border-color: #1C7CC5; background: #F1F7FC; color: #14508A; }
.sf-send:empty { display: none; }
.sf-choice { display: block; width: 100%; text-align: left; margin: 0 0 12px; padding: 16px 18px; border: 1.5px solid #D5DEEA; border-radius: 12px; background: #fff; color: #14233F; font: inherit; cursor: pointer; }
.sf-choice:hover, .sf-choice:focus-visible { border-color: #1C7CC5; background: #F6FAFE; outline: none; }
.sf-choice strong { display: block; font-size: 1.05rem; }
.sf-choice span { color: #5B6B82; font-size: 0.95rem; }
.sf-qrbox { display: grid; place-items: center; min-height: 210px; margin: 0 0 8px; }
.sf-qr { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid #D5DEEA; border-radius: 12px; padding: 8px; background: #fff; }
.sf-key { margin: 0 0 16px; color: #5B6B82; font-size: 0.9rem; text-align: center; }
.sf-secret { font-family: ui-monospace, Consolas, monospace; word-break: break-all; color: #14233F; user-select: all; }
.sf-codes { list-style: none; margin: 0 0 16px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: #F1F6FC; border-radius: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.04em; color: #14233F; }
.sf-codes li { user-select: all; }

/* Pop-up πάνω από τη σελίδα */
body.lg-open { overflow: hidden; }
.lg-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 25, 50, 0.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); overflow-y: auto; }
.lg-dialog { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; animation: lg-pop 0.18s ease-out; }
.lg-dialog .login-card { width: 100%; }
.lg-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #EEF2F8; color: #44546B; cursor: pointer; display: grid; place-items: center; }
.lg-close:hover, .lg-close:focus-visible { background: #DCE5F1; color: #14233F; outline: none; }
@keyframes lg-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg-dialog { animation: none; } }
