/**
 * Specifické styly stránky Přihlášení (formulář [wppb-login]).
 * Sdílený základ je v shared/auth-forms.css.
 *
 * WordPress meta:
 *   ftp_html_css_file = shared/auth-forms.css, prihlaseni.css
 */

/* —— Vlastní stylovaný checkbox „Zapamatovat si mě" —— */

.ftp-login-form #wppb-loginform p.login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
}

.ftp-login-form #wppb-loginform p.login-remember input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ftp-login-form #wppb-loginform p.login-remember input[type="checkbox"]:hover {
  border-color: #afafaf;
}

.ftp-login-form #wppb-loginform p.login-remember input[type="checkbox"]:checked {
  background: #ed3794;
  border-color: #ed3794;
}

.ftp-login-form #wppb-loginform p.login-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 25%;
  width: 55%;
  height: 35%;
  border-bottom: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transform: rotate(-45deg);
}

.ftp-login-form #wppb-loginform p.login-remember label {
  margin: 0;
  color: #4b4b4b;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* —— Boxová chyba „neplatné jméno/heslo" (login používá výrazný rámeček) —— */

.ftp-login-form #wppb-loginform .wppb-error,
.ftp-login-form #wppb-login-wrap .wppb-error,
.ftp-login-form #wppb-loginform p.wppb-error {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px !important;
  background: #fff0f0 !important;
  border: 2px solid #ff4b4b !important;
  border-radius: 12px !important;
  color: #4b4b4b !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}

.ftp-login-form #wppb-loginform .wppb-error strong,
.ftp-login-form #wppb-login-wrap .wppb-error strong {
  color: #ff4b4b;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* —— Boxová hláška úspěchu (aktivace účtu apod.) —— */

.ftp-login-form > p.wppb-success,
.ftp-login-form #wppb-login-wrap ~ p.wppb-success,
.ftp-login-form p.wppb-success {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px !important;
  background: #f0faf0 !important;
  border: 2px solid #58a700 !important;
  border-radius: 12px !important;
  color: #4b4b4b !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}

/* Záloha: hláška zůstane mimo formulář (např. bez PHP filtru) —— */

:has(> .ftp-page-content.ftp-login-page) > p.wppb-success {
  display: block;
  width: 100%;
  max-width: min(400px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px 14px;
  background: #f0faf0;
  border: 2px solid #58a700;
  border-radius: 12px;
  color: #4b4b4b;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}

/* —— Skrytí integrovaného odkazu „Ztratil/a jsi heslo?" (je vykreslen samostatně pod boxem) —— */

.ftp-login-form #wppb-login-wrap .login-register-lost-password {
  display: none;
}

/* —— Tlačítko „Můj účet" u hlášky „Momentálně jsi přihlášen/a jako…" —— */

.ftp-login-form .ftp-login-account-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  padding: 0 18px;
  background: #ed3794;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 0 0 #b8246e;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.05s ease;
  box-sizing: border-box;
}

.ftp-login-form .ftp-login-account-button:hover,
.ftp-login-form .ftp-login-account-button:focus-visible {
  background: #ed3794;
  color: #ffffff;
  filter: brightness(1.06);
  text-decoration: none;
  outline: none;
}

.ftp-login-form .ftp-login-account-button:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 0 #b8246e;
}

/* —— Reduce motion (specifický checkbox transition) —— */

@media (prefers-reduced-motion: reduce) {
  .ftp-login-form #wppb-loginform p.login-remember input[type="checkbox"],
  .ftp-login-form .ftp-login-account-button {
    transition: none;
  }
}

@media (max-width: 420px) {
  .ftp-login-form .ftp-login-account-button {
    min-height: 48px;
    height: auto;
    padding: 13px 14px 12px;
    font-size: 14px;
    line-height: 1.2;
  }
}
