/* ── logowanie.css — cmp3.eu ── */

body {
  background: url('/themes/2024/img/bg-cmp3.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow: auto;
}

/* Ciemna warstwa nad tłem */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,14,.88) 0%, rgba(20,10,12,.82) 100%);
  z-index: 0;
}

/* ── Kontenery ── */
.container,
.statistics { background: none; position: relative; z-index: 1; }

.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.container .statistics {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.container .tresc {
  padding: 15px;
  text-align: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Logo ── */
img.logo { max-width: 200px; height: auto; display: block; margin: 0 auto 24px; }
a > img.logo { display: block; margin: 0 auto 28px; }

/* ── Modal — formularz rejestracji / logowania ── */
.modal-dialog {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #1a1c22 0%, #13151a 100%);
  border: 1px solid #2e3138;
  border-radius: 14px;
  padding: 28px 28px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
  color: #c4c8d4;
}

.modal-dialog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4001a, transparent);
  border-radius: 14px 14px 0 0;
}

/* ── Nagłówek ── */
.naglowek {
  background: none;
  color: #fff;
  font: bold 18px/1.4 Lato, Arial, sans-serif;
  padding: 0 0 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.naglowek::before { color: #d4001a; font-size: 20px; }

/* ── Grupy inputów ── */
.form-group {
  margin: 0 0 12px;
  position: relative;
}

.input-group {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2e3138;
  background: #0e1013;
  transition: border-color .18s;
}
.input-group:focus-within { border-color: #d4001a; }

.input-group-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  background: #111316;
  border-right: 1px solid #252830;
  color: #555;
  font-size: 16px;
}

.form-control {
  flex: 1;
  background: transparent;
  border: none;
  color: #c4c8d4;
  font-size: 13px;
  padding: 11px 14px;
  outline: none;
  min-width: 0;
}
.form-control::placeholder { color: #555; }
.form-control:focus { color: #fff; }

/* ── Checkbox regulamin ── */
.form-group.reg {
  font-size: 12px;
  color: #888;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #252830;
  background: #0e1013;
  text-align: center;
  line-height: 1.7;
  transition: border-color .18s, color .18s;
}
.form-group.reg input[type="checkbox"] { margin: 0 6px 0 0; accent-color: #d4001a; }
.form-group.reg label { cursor: pointer; }
.form-group.reg a { color: #d4001a; text-decoration: underline; }

/* ── reCAPTCHA ── */
.form-group > .g-recaptcha { display: flex; justify-content: center; margin: 4px 0; }

/* ── Przycisk submit ── */
.form-group.zal button,
.icon-login.button[type="submit"],
button.icon-login.button {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #d4001a, #9a0013);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  letter-spacing: .4px;
  box-shadow: 0 3px 14px rgba(212,0,26,.35);
  transition: box-shadow .18s, transform .18s, background .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-group.zal button:hover,
.icon-login.button[type="submit"]:hover {
  box-shadow: 0 5px 22px rgba(212,0,26,.55);
  transform: translateY(-1px);
}
.icon-login.button[type="submit"]:disabled {
  background: #2a2d33;
  border-color: #333;
  color: #555;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}


/* ── Linki (Rejestracja / Przypomnij hasło) ── */
.input-group.pass {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
  background: none;
  border: none;
  border-radius: 0;
}
.input-group.pass a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
.input-group.pass a.button.aqua {
  background: rgba(0,186,255,.1);
  border: 1px solid rgba(0,186,255,.3);
  color: #00baff;
}
.input-group.pass a.button.aqua:hover {
  background: rgba(0,186,255,.2);
  border-color: #00baff;
  color: #fff;
}
.input-group.pass a.button.orange {
  background: rgba(255,132,0,.1);
  border: 1px solid rgba(255,132,0,.3);
  color: #ff8400;
}
.input-group.pass a.button.orange:hover {
  background: rgba(255,132,0,.2);
  border-color: #ff8400;
  color: #fff;
}

/* ── Dodatkowy przycisk (Logowanie po aktywacji) ── */
form.form-signin .icon-login.button.red {
  width: 100%;
  font-size: 1em;
  padding: 11px;
  margin: 14px 0 10px;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px auto;
  float: none;
}
.countdown li {
  background: #111316;
  border: 1px solid #252830;
  border-radius: 10px;
  text-align: center;
  padding: 8px;
  min-width: 70px;
}
.countdown li span {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

/* ── Loader ── */
.container .loader { width: 30px; height: 30px; }
.loadt { height: auto; }

/* ── Inne ── */
b.block { padding: 10px 0 0; }
.block { display: block; text-align: center; width: 100%; color: #fff; }
.icon-attention::before { font-size: 1.5em; color: #ff0000; vertical-align: bottom; }

.button.icon-newspaper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* ── Small-box ── */
.small-box { margin: 5px 0 10px; padding: 10px 14px; border-radius: 8px; background: #111316; border: 1px solid #252830; }
.small-box p { font-size: 1.1em; text-align: justify; color: #aaa; line-height: 1.6; }

/* ── Wynik weryfikacji emaila ── */
#searchresults.form-group,
.form-group #searchresults { background: #0e1013; border: 1px solid #2e3138; border-radius: 8px; }

/* ── Responsive ── */
@media screen and (max-width: 510px) {
  .modal-dialog { padding: 20px 16px 16px; }
  .countdown { display: flex; flex-wrap: wrap; justify-content: center; }
  .countdown li { min-width: 60px; height: auto; }
  .countdown li span { font-size: 24px; }
  img.logo, a > img.logo { width: 100%; max-width: 180px; }
  .input-group.pass { grid-template-columns: 1fr; }
}
