/* Stranica za prijavu / registraciju */

.auth-page {
  min-height: 100vh;
  background: #f6f3f1; /* isto kao var(--bg) */
  padding: 120px 16px 48px; /* prostor zbog sticky headera */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(160deg, #fff 0%, #f1d1c5 100%);
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  padding: 22px 20px 24px;
  box-sizing: border-box;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: #3b2626;
}

.auth-subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  text-align: center;
  color: #6c4c4c;
}

/* TABOVI */

.auth-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  margin: 0 auto 14px;
}

.auth-tabs .auth-tab {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 500;
  color: #7a5555;
  transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.auth-tabs .auth-tab.active {
  background: #fff;
  color: #3b2626;
  transform: translateY(-1px);
}

/* FORME */

.auth-form {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.9rem;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4a2f2f;
}

.auth-field .optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8b6f6f;
}

.auth-field input {
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 7px 9px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field input:focus {
  border-color: #b65c5c;
  box-shadow: 0 0 0 1px rgba(182, 92, 92, 0.3);
  background: #fffdfb;
}

/* SUBMIT GUMB */

.auth-submit {
  margin-top: 12px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #b65c5c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.auth-submit:hover {
  background: #c76a6a;
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.22);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* PORUKE */

.auth-message {
  margin-bottom: 10px;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 0.6rem;
}

.auth-message-error {
  background: #ffe5e5;
  color: #9b2020;
  border: 1px solid #f5b0b0;
}

.auth-message-success {
  background: #e3f6e7;
  color: #1f7a37;
  border: 1px solid #b6e2c2;
}

/* GOOGLE LOGIN */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #7a5555;
  margin: 8px 0 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.auth-google-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 8px 12px;
  font-size: 0.92rem;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.auth-google-btn:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.16);
}

.google-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* ODJAVA */

.auth-logout-btn {
  margin-top: 8px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 7px 12px;
  font-size: 0.86rem;
  background: #f6e0dd;
  color: #5a3434;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
}

.auth-logout-btn:hover {
  background: #edcdc6;
  transform: translateY(-1px);
}

/* RESPONSIVE */

@media (max-width: 640px) {
  .auth-page {
    padding: 110px 10px 32px;
  }

  .auth-container {
    padding: 18px 14px 18px;
    border-radius: 0.9rem;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}
