/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: sans-serif;
  line-height: 1.5;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* Wyśrodkowanie w poziomie */
}

/* NAGŁÓWEK */
header.site-header {
  background: #e02b20;
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav a {
  padding: 0.5rem 1rem;
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

/* GŁÓWNA ZAWARTOŚĆ STRONY */
main {
  flex: 1;
  display: flex;
  justify-content: center;   /* WYŚRODKOWANIE POZIOME */
  align-items: flex-start;   /* PRZYWIERA DO GÓRY */
  padding: 2rem 1rem;
}

/* FORMULARZ LOGOWANIA */
.login-container,
#reset-password-form {
  background: #fff;
  padding: 5px 2px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto; /* << KLUCZ DO WYŚRODKOWANIA W POZIOMIE */
}

/* FORMULARZ */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  padding: 10px 15px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
  width: 100%;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus {
  border-color: #0055a5;
  outline: none;
}

form input[type="submit"],
.login-form button {
  background-color: #0055a5;
  color: white;
  padding: 12px;
  font-size: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

form input[type="submit"]:hover,
.login-form button:hover {
  background-color: #003d80;
}

.remember,
.remember-me {
  display: flex;
  align-items: center;
  font-size: 10px;
}

.remember input,
.remember-me input {
  margin-right: 8px;
}

.login-form .links {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* OBRAZKI */
img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

/* STOPKA */
footer.site-footer {
  background: #000;
  color: white;
  padding: 1rem;
  text-align: center;
   font-size: 11px;
}

.footer-info p,
.footer-info h2,
footer a {
  color: white;
}

footer a:hover {
  text-decoration: underline;
}

/* LINKI */
a {
  color: #0055a5;
  text-decoration: none;
  font-size: 14px;
  margin-top: 5px;
}
.osp {
  color: #FFFFFF;
  text-decoration: bold;
  font-size: 16px;
  margin-top: 0px;
}
a:hover {
  text-decoration: underline;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #003366;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
  }

  .main-nav.open {
    max-height: 200px;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }
}

@media (min-width: 768px) {
  .login-container,
  #reset-password-form {
    padding: 10px;
  }

  form input[type="submit"],
  .login-form button {
    font-size: 18px;
  }

  a {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  form input[type="text"],
  form input[type="password"],
  form input[type="email"],
  form input[type="submit"],
  .login-form button {
    font-size: 14px;
    padding: 10px;
  }

  .remember,
  .remember-me {
    font-size: 13px;
  }

  a {
    font-size: 13px;
  }
}
/* Sprawdzanie hasła */
  #strength-bar {
    height: 6px;
    background-color: #ddd;
    margin: 4px 0 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  .weak {
    background-color: red;
  }
  .medium {
    background-color: orange;
  }
  .strong {
    background-color: green;
  }

  #match-msg {
    font-size: 0.9em;
    display: block;
    margin-top: 4px;
  }
  #match-msg.ok {
    color: green;
  }
  #match-msg.bad {
    color: red;
  }

/* Tabela z zawartością stona index */
.container2 {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size:10px;
    font-weight: bold;
}

.section {
    margin-bottom: 30px;
}

h3 {
    background-color: #dce6f1;
    padding: 10px;
    font-size: 1.1em;
    border-radius: 8px;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1px;
}

th, td {
    border: 1px solid #000000;
    padding: 1px;
    text-align: center;
    font-weight: normal;
    background: white;
    color: #000;
    font-family: "Bang Old Style", sans-serif;
	font-size: 12px;
}

th {
    background-color: #e9f1ff;
    font-weight: bold;
}

.skladka-nie {
    background-color: red;
    color: black;
    font-weight: bold;
}

.skladka-tak {
    background-color: green;
    color: black;
    font-weight: bold;
}

/* Responsywność */
@media (max-width: 768px) {
    .container {
        overflow-x: auto;
    }

    table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }
}
