/* auth.css - Style dla Logowania i Rejestracji */

/* Główny kontener (centrowanie) */
.auth-container {
  padding-top: 160px;
  /* Miejsce na navbar */
  padding-bottom: 80px;
  max-width: 450px;
  margin: 0 auto;
  min-height: 80vh;
  /* Żeby stopka była na dole */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Karta z formularzem */
.auth-box {
  background: #1a1b1e;
  /* Ciemnoszary, ale jaśniejszy niż tło body */
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid #333;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Cień pod kartą */
  position: relative;
  overflow: hidden;
}

/* Ozdobny pasek na górze karty */
.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold, #d4af37);
  /* Złoty pasek */
}

/* Tytuł */
.auth-title {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 400;
  font-family: 'Cinzel', serif;
  /* Jeśli używasz tej czcionki */
  letter-spacing: 1px;
}

/* Pola formularza */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  color: #bbb;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px;
  background: #252629;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-gold, #d4af37);
  outline: none;
  background: #2a2b2e;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Fix dla żółtego tła autouzupełniania w Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #252629 inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Przycisk */
.btn-auth {
  width: 100%;
  padding: 15px;
  background: var(--color-gold, #d4af37);
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-auth:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Sekcja przełączania (Logowanie <-> Rejestracja) */
.auth-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.auth-link {
  color: var(--color-gold, #d4af37);
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: 0.2s;
}

.auth-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Komunikaty błędów/sukcesu */
.auth-alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #ff6b6b;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #5ddc77;
}