/* ==========================================================================
   events.wat.edu.pl — strona logowania / rejestracji / resetu hasła
   Wymaga 10-wat-theme.css (zmienne --wat-*). Ładowany po nim (alfabetycznie).
   Dotyczy wszystkich stron z kontenerem .login-page.
   ========================================================================== */

/* tło strony: jasnoszare, przez które prześwituje godło z 00-index.css */
body:has(.login-page) { background: #eceeef; }

.login-page {
  position: relative;            /* zamiast position:absolute + display:table */
  display: block;
  min-height: 100vh;
  height: auto;
  padding: 48px 16px 120px;      /* dół: miejsce na stopkę */
  background: transparent;
  font-family: var(--wat-font-body);
  color: var(--wat-gray-900);
}

.login-page .middle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 168px);
}

.login-page .middle .centered-column-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.login-page .middle .centered-column-wrapper .centered-column {
  width: 100%;
  margin: 0;
  background: #fff;
  border-top: 4px solid var(--wat-red);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
  padding: 0 32px 28px;
  text-align: left;
}
.login-page .middle .centered-column-wrapper .centered-column.wide { max-width: 560px; }
.login-page .middle .centered-column-wrapper:has(.centered-column.wide) { max-width: 560px; }

/* czarna belka z logo WAT na górze karty
   (obrazek z szablonu jest ładowany z wojsko-polskie.pl i bywa blokowany – ukrywamy go) */
.login-page .middle .centered-column-wrapper .header-logo { display: none; }
.login-page .centered-column::before {
  content: "";
  display: block;
  margin: 0 -32px 26px;
  height: 104px;
  background: var(--wat-black) url("/images/Logo.png") no-repeat center / auto 58px;
}
/* --- formularz --- */
.login-page .login-container { margin: 0; }
.login-page form { margin-bottom: 14px; }

.login-page form input:not([type=submit]) {
  height: 3em;
  padding: .6em 1em;
  border: 1px solid var(--wat-gray-300);
  border-radius: 0 !important;
  margin-top: 0;
  margin-bottom: 10px;
  background: #fff;
  color: var(--wat-gray-900);
  font-family: var(--wat-font-body);
  font-size: 1rem;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-page form input:not([type=submit]):last-of-type { margin-bottom: 0; }
.login-page form input:not([type=submit]):focus {
  outline: none !important;
  border-color: var(--wat-red);
  box-shadow: 0 0 0 3px rgba(219, 0, 47, .15);
}
.login-page form input::placeholder { color: #8a8a8a; }

/* etykiety pól w formularzach rejestracji / resetu hasła */
.login-page form label,
.login-page .form-label {
  font-family: var(--wat-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .85rem;
  color: var(--wat-gray-600);
}

/* --- przyciski --- */
.login-page .login-form-button,
.login-page .provider-with-form,
.login-page .login-providers .i-button {
  height: 3.1em;
  border-radius: 0 !important;
  font-family: var(--wat-font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none !important;
}

/* główny przycisk: „Zaloguj się z …” */
.login-page .i-button.login-form-button:not(.label) {
  background: var(--wat-red) !important;
  background-image: none !important;
  border: 1px solid var(--wat-red) !important;
  color: #fff !important;
}
.login-page .i-button.login-form-button:not(.label):hover,
.login-page .i-button.login-form-button:not(.label):focus-visible {
  background: var(--wat-red-dark) !important;
  border-color: var(--wat-red-dark) !important;
}

/* alternatywni dostawcy (np. konto Indico) */
.login-page .i-button.provider-with-form:not(.label),
.login-page .login-providers .i-button:not(.label):not(.login-form-button) {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--wat-gray-900) !important;
  color: var(--wat-gray-900) !important;
}
.login-page .i-button.provider-with-form:not(.label):hover,
.login-page .login-providers .i-button:not(.label):not(.login-form-button):hover {
  background: var(--wat-black) !important;
  border-color: var(--wat-black) !important;
  color: #fff !important;
}
.login-page .login-providers { margin-top: 0; }

/* separator „lub zmień dostawcę” */
.login-page .titled-rule {
  color: var(--wat-gray-600);
  font-family: var(--wat-font-head);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 22px 0 16px;
}
.login-page .titled-rule::before,
.login-page .titled-rule::after {
  background: var(--wat-gray-300);
  box-shadow: none;
}

/* rejestracja, „Wstecz”, „Zapomniałem hasła” */
.login-page .register {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--wat-gray-100);
  color: var(--wat-gray-600);
  font-size: .9rem;
  text-align: center;
}
.login-page .register a,
.login-page .forgot-my-password a { color: var(--wat-red); font-weight: 600; }
.login-page .forgot-my-password { font-size: .9rem; }

.login-page .link { margin-top: 14px; text-align: left; }
.login-page .link a {
  color: var(--wat-gray-600);
  font-family: var(--wat-font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  text-decoration: none;
}
.login-page .link a::before { margin-right: .35em; }
.login-page .link a:hover { color: var(--wat-red); }

/* komunikaty (błędne hasło itp.) */
.login-page .flashed-messages > * { border-radius: 0 !important; text-align: left; }

/* --- stopka na pełną szerokość, przyklejona do dołu strony --- */
.login-page .middle .centered-column-wrapper .footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  align-items: stretch;
}
.login-page .footer-links { display: block; }

/* --- telefon --- */
@media (max-width: 480px) {
  .login-page { padding: 0 0 130px; }
  .login-page .middle { align-items: flex-start; min-height: 0; }
  .login-page .middle .centered-column-wrapper .centered-column {
    box-shadow: none;
    padding: 0 20px 24px;
  }
  .login-page .centered-column::before { margin: 0 -20px 22px; height: 88px; background-size: auto 48px; }
}
