/* === MODAL LOGOWANIA / REJESTRACJI === */

.auth-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
}

/* === HEADER === */
.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.6rem;
}
.auth-modal-logo {
  width: 50px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.auth-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-self: center;
}

.auth-modal-icon.accent {
  color: #333;
}

.auth-modal.hidden {
  display: none;
}

.auth-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px 35px; 
  max-width: 420px; 
  width: 90%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
  text-align: left;
  animation: fadeIn 0.25s ease;
}

.auth-modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.auth-modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

.auth-modal-content input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 15px;
}

.auth-btn {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #333;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-btn:hover {
  background: #cf4040;
}

.auth-switch {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.auth-switch a {
  color: #cf4040;
  text-decoration: none;
  font-weight: bold;
}

.auth-switch a:hover {
  text-decoration: underline;
}


/* === Ponowne wysłanie linku aktywacyjnego=== */
.resend-activation-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  background-color: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.resend-activation-btn:hover {
  background-color: #f8f8f8;
  border-color: #bbb;
  transform: translateY(-1px);
}

.resend-activation-btn:active {
  background-color: #f0f0f0;
  transform: translateY(0);
}

.resend-activation-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Wrapper dla pola hasła */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.toggle-password:hover {
  opacity: 1;
}

.toggle-password .icon {
  width: 20px;
  height: 20px;
}

/* Pasek siły hasła */
.password-strength {
  margin-top: 6px;
  height: 10px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background: red;
  transition: width 0.3s, background 0.3s;
  border-radius: 4px;
}
/* Tekst siły hasła */
.strength-text {
  display: block;
  font-size: 13px;
  margin-top: 4px;
  text-align: right;
  color: #555;
  font-weight: bold;
}
/* Wymagania dotyczące hasła */
.password-requirements {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  color: #777;
}
.password-requirements li {
  margin: 4px 0;
  padding-left: 20px;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}

.password-requirements li::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: #d9534f; /* czerwony */
  font-weight: bold;
  transition: color 0.3s;
}

.password-requirements li.valid {
  color: #28a745; /* zielony */
}

.password-requirements li.valid::before {
  content: "✔";
  color: #28a745;
}

/* Checkboxy zgody */
.auth-checkboxes {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #444;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #cf4040;
  cursor: pointer;
  margin-top: 0.15rem;
}

.checkbox-wrapper a {
  color: #cf4040;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.checkbox-wrapper a:hover {
  text-decoration: underline;
}

/* X zamykania */
.auth-modal-close {
 position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s, color 0.2s;
}

.auth-modal-close:hover {
  background: #e74c3c;
  color: #fff;
}

/* Animacja */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsywność */
@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    padding: 20px;
  }
}