/*
 * Silent Heroes — wp-login.php customization
 * Brand: czerwone akcenty (#CC1B1B), Poppins, jasne tło, czarne logo SH.
 * Dotyczy: login, rejestracja, „nie pamiętasz hasła", reset.
 */

/* ===== TŁO + TYPOGRAFIA ===== */
body.login {
  background: #f5f5f5;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#login {
  width: 360px;
  padding-top: 6vh;
}

/* ===== LOGO ===== */
.login h1 a {
  background-image: url('../img/logo-silent-heroes.png');
  background-color: #111111;
  background-size: 220px auto;
  background-repeat: no-repeat;
  background-position: center center;
  width: 320px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  text-indent: -9999px;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease;
}
.login h1 a:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.login h1 a:focus {
  box-shadow: 0 0 0 3px rgba(204, 27, 27, 0.35);
}

/* ===== KARTA FORMULARZA ===== */
.login form {
  background: #ffffff;
  border: 1px solid #E0DDD8;
  border-radius: 4px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-top: 0;
}

.login form .input,
.login input[type=text],
.login input[type=password],
.login input[type=email] {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login input[type=text]:focus,
.login input[type=password]:focus,
.login input[type=email]:focus {
  border-color: #CC1B1B;
  box-shadow: 0 0 0 2px rgba(204, 27, 27, 0.15);
  outline: none;
}

.login label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.login .forgetmenot label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 13px;
  color: #666;
}

/* ===== PRZYCISK GŁÓWNY (Zaloguj się / Zarejestruj się) ===== */
.wp-core-ui .button-primary,
.login .button-primary {
  background: #CC1B1B !important;
  border: 1px solid #CC1B1B !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.5rem !important;
  height: auto !important;
  line-height: 1.4 !important;
  border-radius: 3px !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus,
.login .button-primary:hover,
.login .button-primary:focus {
  background: #A81515 !important;
  border-color: #A81515 !important;
  box-shadow: 0 0 0 2px rgba(204, 27, 27, 0.15) !important;
  outline: none;
}

/* ===== LINKI POD FORMULARZEM ===== */
#nav, #backtoblog {
  text-align: center;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

#nav a, #backtoblog a {
  color: #CC1B1B !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

#nav a:hover, #backtoblog a:hover,
#nav a:focus, #backtoblog a:focus {
  color: #A81515 !important;
  text-decoration: underline;
  outline: none;
}

#nav {
  font-size: 14px;
}

#backtoblog {
  font-size: 13px;
  margin-top: 1.25rem;
}

/* ===== KOMUNIKATY (błędy, info, success) ===== */
.login .message,
.login #login_error,
.login .notice {
  border-left: 3px solid #CC1B1B !important;
  background: #fff !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  padding: 0.875rem 1rem !important;
  font-size: 14px !important;
  color: #333 !important;
}

.login .message {
  border-left-color: #27AE60 !important; /* success — zielony */
}

/* ===== JĘZYK SWITCHER (na dole) ===== */
.login .language-switcher {
  margin-top: 1.25rem;
  text-align: center;
}

.login .language-switcher select,
.login .language-switcher button {
  font-family: inherit;
  font-size: 13px;
}

/* ===== CHECKBOX „Zapamiętaj mnie" ===== */
.login .forgetmenot {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.login input[type=checkbox] {
  accent-color: #CC1B1B;
}

/* ===== HASŁO — IKONA OKA ===== */
.login .wp-pwd button.button {
  background: transparent !important;
  border: none !important;
  color: #666 !important;
  box-shadow: none !important;
  padding: 0.4rem !important;
}

.login .wp-pwd button.button:hover {
  color: #CC1B1B !important;
  background: transparent !important;
}

/* ===== SOCIAL LOGIN (jeśli plugin go używa) ===== */
/* Zachowuje się neutralnie — nie nadpisuje ikon, tylko porządkuje spacing. */
.login .nsl-button-default,
.login [class*="social-login"] {
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  #login { width: 92%; padding: 4vh 1rem 0; }
  .login h1 a { width: 280px; height: 120px; background-size: 190px auto; }
  .login form { padding: 1.5rem 1.25rem 1.25rem; }
}
