/* ============================================================
   PF2026 — Modal de connexion Passlord (login-modal.js)
   ============================================================ */

.pf-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 13, 28, .55);
  backdrop-filter: blur(2px);
}

body.pf-login-open {
  overflow: hidden;
}

.pf-login-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  background: var(--white, #fff);
  border-radius: 16px;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(13, 13, 28, .10));
  font-family: var(--font, sans-serif);
  color: var(--ink, #0D0D1C);
}

.pf-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-light, #6B6B8A);
  cursor: pointer;
}

.pf-login-close:hover {
  color: var(--ink, #0D0D1C);
}

.pf-login-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.pf-login-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-light, #6B6B8A);
}

.pf-login-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--red-bg, #FFF0F0);
  color: var(--red, #CC0000);
  font-size: 13px;
}

.pf-login-label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.pf-login-input {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border, #E3E3EF);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--cream, #F7F6F2);
  color: var(--ink, #0D0D1C);
}

.pf-login-input:focus {
  outline: 2px solid var(--yellow, #FFCB05);
  outline-offset: 0;
  border-color: var(--yellow-dark, #E6B600);
  background: var(--white, #fff);
}

.pf-login-submit {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow, #FFCB05);
  color: var(--ink, #0D0D1C);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}

.pf-login-submit:hover:not(:disabled) {
  background: var(--yellow-dark, #E6B600);
}

.pf-login-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.pf-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--ink-faint, #A4A4BE);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pf-login-divider::before,
.pf-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #E3E3EF);
}

.pf-login-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pf-login-social-btn {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s ease;
}

.pf-login-social-btn:hover {
  filter: brightness(.92);
}

.pf-login-social-btn--discord {
  background: #5865F2;
  color: #fff;
}

.pf-login-social-btn--google {
  background: var(--white, #fff);
  color: var(--ink, #0D0D1C);
  border: 1px solid var(--border, #E3E3EF);
}

.pf-login-social-btn--facebook {
  background: #1877F2;
  color: #fff;
}

.pf-login-social-btn--apple {
  background: #000;
  color: #fff;
}

.pf-login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 13px;
}

.pf-login-links a {
  color: var(--blue, #1A3A8F);
  text-decoration: none;
}

.pf-login-links a:hover {
  text-decoration: underline;
}

.pf-login-classic {
  display: block;
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint, #A4A4BE);
  text-decoration: none;
}

.pf-login-classic:hover {
  color: var(--ink-light, #6B6B8A);
  text-decoration: underline;
}
