/* ── Login Screen ──────────────────────────────────────────────── */
.pri-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 16px;
}

.pri-auth__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}

.pri-auth__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: rgb(28, 44, 67);
  text-align: center;
}

.pri-auth__subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

.pri-auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pri-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pri-auth__field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.pri-auth__field input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.pri-auth__field input:focus {
  border-color: rgb(0, 99, 145);
  box-shadow: 0 0 0 3px rgba(0, 99, 145, 0.12);
}

.pri-auth__btn {
  padding: 11px 18px;
  background-color: rgb(0, 99, 145);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.pri-auth__btn:hover {
  background-color: rgb(0, 80, 120);
}

.pri-auth__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pri-auth__btn--secondary {
  background-color: #6b7280;
}

.pri-auth__btn--secondary:hover {
  background-color: #4b5563;
}

.pri-auth__error {
  font-size: 13px;
  color: #dc2626;
  min-height: 18px;
}

.pri-auth__success {
  font-size: 13px;
  color: #16a34a;
  min-height: 18px;
}

/* ── User Bar (logged in) ─────────────────────────────────────── */
.pri-rv__user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #f4f7fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pri-rv__user-name {
  font-size: 14px;
  color: #333;
  margin-right: auto;
}

.pri-rv__user-btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgb(0, 99, 145);
  border-radius: 8px;
  background: transparent;
  color: rgb(0, 99, 145);
  cursor: pointer;
  transition: all 0.2s;
}

.pri-rv__user-btn:hover {
  background-color: rgb(0, 99, 145);
  color: #fff;
}

.pri-rv__user-btn--logout {
  border-color: #dc2626;
  color: #dc2626;
}

.pri-rv__user-btn--logout:hover {
  background-color: #dc2626;
  color: #fff;
}

/* ── Change Password Panel ────────────────────────────────────── */
.pri-auth__change-pw {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 420px;
}

.pri-auth__change-pw h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: rgb(28, 44, 67);
}

.pri-auth__change-pw .pri-auth__field {
  margin-bottom: 12px;
}

.pri-auth__change-pw .pri-auth__btn {
  margin-top: 8px;
  margin-right: 8px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pri-auth__card {
    padding: 28px 20px;
  }

  .pri-rv__user-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pri-rv__user-name {
    margin-right: 0;
    margin-bottom: 8px;
  }
}
