/* Panel logowania — brandbook Zaplanowane Gotowanie */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(51, 41, 31, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-overlay.auth-hidden { display: none !important; }

.auth-panel {
  width: 100%;
  max-width: 440px;
  background: var(--karta, #FFFDF6);
  border: 1px solid var(--linia, #D8CBB2);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(51, 41, 31, 0.14);
  padding: 24px 24px 28px;
  position: relative;
  font-family: 'Lora', Georgia, serif;
  color: var(--atrament, #33291F);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--papier, #F8F3E7);
  color: var(--atrament, #33291F);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover { background: var(--stary-papier, #EDE3CE); }

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.auth-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--linia, #D8CBB2);
  border-radius: 10px;
  background: var(--papier, #F8F3E7);
  color: var(--atrament, #33291F);
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-tab:hover {
  background: var(--stary-papier, #EDE3CE);
}

.auth-tab.is-active {
  background: var(--zielen-ciemna, #2C4026);
  border-color: var(--zielen-ciemna, #2C4026);
  color: #fff;
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--zielen-ciemna, #2C4026);
  margin: 0 0 6px;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #6b5f52;
  margin: 0 0 18px;
  line-height: 1.5;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--atrament, #33291F);
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--linia, #D8CBB2);
  border-radius: 10px;
  background: #fff;
  color: var(--atrament, #33291F);
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
}

.auth-field input:focus {
  outline: 3px solid var(--pudrowy, #EBC5CC);
  outline-offset: 1px;
}

.auth-submit {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: var(--malina-ciemna, #8F3444);
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.auth-submit:hover:not(:disabled) { background: var(--malina, #B5495B); }
.auth-submit:disabled { opacity: 0.55; cursor: wait; }

.auth-message {
  font-size: 0.88rem;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.45;
}

.auth-message--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.auth-message--success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

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

.auth-password-wrap.hidden { display: none; }

/* Planer: pełnoekranowe tło papieru gdy wymuszony login */
.auth-overlay--blocking {
  background: rgba(248, 243, 231, 0.97);
  backdrop-filter: blur(2px);
}

.auth-overlay--blocking .auth-close { display: none; }
